Lines Matching defs:PythonByteArray
171 if (PythonByteArray::Check(m_py_obj))
290 return PythonByteArray(PyRefType::Borrowed, m_py_obj)
345 PythonByteArray::PythonByteArray(llvm::ArrayRef<uint8_t> bytes)
346 : PythonByteArray(bytes.data(), bytes.size()) {}
348 PythonByteArray::PythonByteArray(const uint8_t *bytes, size_t length) {
350 *this = Take<PythonByteArray>(PyByteArray_FromStringAndSize(str, length));
353 bool PythonByteArray::Check(PyObject *py_obj) {
359 llvm::ArrayRef<uint8_t> PythonByteArray::GetBytes() const {
368 size_t PythonByteArray::GetSize() const {
375 StructuredData::StringSP PythonByteArray::CreateStructuredString() const {