Home
last modified time | relevance | path

Searched refs:PythonByteArray (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.cpp168 if (PythonByteArray::Check(m_py_obj)) in GetObjectType()
281 return PythonByteArray(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject()
336 PythonByteArray::PythonByteArray(llvm::ArrayRef<uint8_t> bytes) in PythonByteArray() function in PythonByteArray
337 : PythonByteArray(bytes.data(), bytes.size()) {} in PythonByteArray()
339 PythonByteArray::PythonByteArray(const uint8_t *bytes, size_t length) { in PythonByteArray() function in PythonByteArray
341 *this = Take<PythonByteArray>(PyByteArray_FromStringAndSize(str, length)); in PythonByteArray()
344 bool PythonByteArray::Check(PyObject *py_obj) { in Check()
350 llvm::ArrayRef<uint8_t> PythonByteArray::GetBytes() const { in GetBytes()
359 size_t PythonByteArray::GetSize() const { in GetSize()
366 StructuredData::StringSP PythonByteArray::CreateStructuredString() const { in CreateStructuredString()
H A DPythonDataObjects.h417 class PythonByteArray : public TypedPythonObject<PythonByteArray> {
420 explicit PythonByteArray(llvm::ArrayRef<uint8_t> bytes);
421 PythonByteArray(const uint8_t *bytes, size_t length);
422 PythonByteArray(const PythonBytes &object);
/llvm-project-15.0.7/lldb/bindings/python/
H A Dpython-typemaps.swig159 } else if (PythonByteArray::Check($input)) {
160 PythonByteArray bytearray(PyRefType::Borrowed, $input);
179 } else if (PythonByteArray::Check($input)) {
180 PythonByteArray bytearray(PyRefType::Borrowed, $input);
/llvm-project-15.0.7/lldb/unittests/ScriptInterpreter/Python/
H A DPythonDataObjectsTests.cpp229 EXPECT_TRUE(PythonByteArray::Check(py_bytes)); in TEST_F()
230 PythonByteArray python_bytes(PyRefType::Owned, py_bytes); in TEST_F()