Searched refs:PythonByteArray (Results 1 – 3 of 3) sorted by relevance
169 if (PythonByteArray::Check(m_py_obj)) in GetObjectType()288 return PythonByteArray(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject()343 PythonByteArray::PythonByteArray(llvm::ArrayRef<uint8_t> bytes) in PythonByteArray() function in PythonByteArray344 : PythonByteArray(bytes.data(), bytes.size()) {} in PythonByteArray()346 PythonByteArray::PythonByteArray(const uint8_t *bytes, size_t length) { in PythonByteArray() function in PythonByteArray348 *this = Take<PythonByteArray>(PyByteArray_FromStringAndSize(str, length)); in PythonByteArray()351 bool PythonByteArray::Check(PyObject *py_obj) { in Check()357 llvm::ArrayRef<uint8_t> PythonByteArray::GetBytes() const { in GetBytes()366 size_t PythonByteArray::GetSize() const { in GetSize()373 StructuredData::StringSP PythonByteArray::CreateStructuredString() const { in CreateStructuredString()
441 class PythonByteArray : public TypedPythonObject<PythonByteArray> {444 explicit PythonByteArray(llvm::ArrayRef<uint8_t> bytes);445 PythonByteArray(const uint8_t *bytes, size_t length);446 PythonByteArray(const PythonBytes &object);
245 } else if (PythonByteArray::Check($input)) {246 PythonByteArray bytearray(PyRefType::Borrowed, $input);266 } else if (PythonByteArray::Check($input)) {267 PythonByteArray bytearray(PyRefType::Borrowed, $input);