Searched refs:PythonByteArray (Results 1 – 4 of 4) sorted by relevance
168 if (PythonByteArray::Check(m_py_obj)) in GetObjectType()281 return PythonByteArray(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject()336 PythonByteArray::PythonByteArray(llvm::ArrayRef<uint8_t> bytes) in PythonByteArray() function in PythonByteArray337 : PythonByteArray(bytes.data(), bytes.size()) {} in PythonByteArray()339 PythonByteArray::PythonByteArray(const uint8_t *bytes, size_t length) { in PythonByteArray() function in PythonByteArray341 *this = Take<PythonByteArray>(PyByteArray_FromStringAndSize(str, length)); in PythonByteArray()344 bool PythonByteArray::Check(PyObject *py_obj) { in Check()350 llvm::ArrayRef<uint8_t> PythonByteArray::GetBytes() const { in GetBytes()359 size_t PythonByteArray::GetSize() const { in GetSize()366 StructuredData::StringSP PythonByteArray::CreateStructuredString() const { in CreateStructuredString()
417 class PythonByteArray : public TypedPythonObject<PythonByteArray> {420 explicit PythonByteArray(llvm::ArrayRef<uint8_t> bytes);421 PythonByteArray(const uint8_t *bytes, size_t length);422 PythonByteArray(const PythonBytes &object);
159 } else if (PythonByteArray::Check($input)) {160 PythonByteArray bytearray(PyRefType::Borrowed, $input);179 } else if (PythonByteArray::Check($input)) {180 PythonByteArray bytearray(PyRefType::Borrowed, $input);
229 EXPECT_TRUE(PythonByteArray::Check(py_bytes)); in TEST_F()230 PythonByteArray python_bytes(PyRefType::Owned, py_bytes); in TEST_F()