Searched refs:PythonByteArray (Results 1 – 3 of 3) sorted by relevance
171 if (PythonByteArray::Check(m_py_obj)) in GetObjectType()290 return PythonByteArray(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject()345 PythonByteArray::PythonByteArray(llvm::ArrayRef<uint8_t> bytes) in PythonByteArray() function in PythonByteArray346 : PythonByteArray(bytes.data(), bytes.size()) {} in PythonByteArray()348 PythonByteArray::PythonByteArray(const uint8_t *bytes, size_t length) { in PythonByteArray() function in PythonByteArray350 *this = Take<PythonByteArray>(PyByteArray_FromStringAndSize(str, length)); in PythonByteArray()353 bool PythonByteArray::Check(PyObject *py_obj) { in Check()359 llvm::ArrayRef<uint8_t> PythonByteArray::GetBytes() const { in GetBytes()368 size_t PythonByteArray::GetSize() const { in GetSize()375 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);