Lines Matching defs:PythonByteArray
169 if (PythonByteArray::Check(m_py_obj))
288 return PythonByteArray(PyRefType::Borrowed, m_py_obj)
343 PythonByteArray::PythonByteArray(llvm::ArrayRef<uint8_t> bytes)
344 : PythonByteArray(bytes.data(), bytes.size()) {}
346 PythonByteArray::PythonByteArray(const uint8_t *bytes, size_t length) {
348 *this = Take<PythonByteArray>(PyByteArray_FromStringAndSize(str, length));
351 bool PythonByteArray::Check(PyObject *py_obj) {
357 llvm::ArrayRef<uint8_t> PythonByteArray::GetBytes() const {
366 size_t PythonByteArray::GetSize() const {
373 StructuredData::StringSP PythonByteArray::CreateStructuredString() const {