Searched refs:PythonByteArray (Results 1 – 4 of 4) sorted by relevance
165 if (PythonByteArray::Check(m_py_obj)) in GetObjectType()277 return PythonByteArray(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject()331 PythonByteArray::PythonByteArray(llvm::ArrayRef<uint8_t> bytes) in PythonByteArray() function in PythonByteArray332 : PythonByteArray(bytes.data(), bytes.size()) {} in PythonByteArray()334 PythonByteArray::PythonByteArray(const uint8_t *bytes, size_t length) { in PythonByteArray() function in PythonByteArray336 *this = Take<PythonByteArray>(PyByteArray_FromStringAndSize(str, length)); in PythonByteArray()339 bool PythonByteArray::Check(PyObject *py_obj) { in Check()345 llvm::ArrayRef<uint8_t> PythonByteArray::GetBytes() const { in GetBytes()354 size_t PythonByteArray::GetSize() const { in GetSize()361 StructuredData::StringSP PythonByteArray::CreateStructuredString() const { in CreateStructuredString()
444 class PythonByteArray : public TypedPythonObject<PythonByteArray> {447 explicit PythonByteArray(llvm::ArrayRef<uint8_t> bytes);448 PythonByteArray(const uint8_t *bytes, size_t length);449 PythonByteArray(const PythonBytes &object);
159 else if(PythonByteArray::Check($input)) {160 PythonByteArray bytearray(PyRefType::Borrowed, $input);182 else if(PythonByteArray::Check($input)) {183 PythonByteArray bytearray(PyRefType::Borrowed, $input);
246 EXPECT_TRUE(PythonByteArray::Check(py_bytes)); in TEST_F()247 PythonByteArray python_bytes(PyRefType::Owned, py_bytes); in TEST_F()