Home
last modified time | relevance | path

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

/external/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
DPythonDataObjects.cpp165 if (PythonByteArray::Check(m_py_obj)) in GetObjectType()
277 return PythonByteArray(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject()
331 PythonByteArray::PythonByteArray(llvm::ArrayRef<uint8_t> bytes) in PythonByteArray() function in PythonByteArray
332 : PythonByteArray(bytes.data(), bytes.size()) {} in PythonByteArray()
334 PythonByteArray::PythonByteArray(const uint8_t *bytes, size_t length) { in PythonByteArray() function in PythonByteArray
336 *this = Take<PythonByteArray>(PyByteArray_FromStringAndSize(str, length)); in PythonByteArray()
339 bool PythonByteArray::Check(PyObject *py_obj) { in Check()
345 llvm::ArrayRef<uint8_t> PythonByteArray::GetBytes() const { in GetBytes()
354 size_t PythonByteArray::GetSize() const { in GetSize()
361 StructuredData::StringSP PythonByteArray::CreateStructuredString() const { in CreateStructuredString()
DPythonDataObjects.h444 class PythonByteArray : public TypedPythonObject<PythonByteArray> {
447 explicit PythonByteArray(llvm::ArrayRef<uint8_t> bytes);
448 PythonByteArray(const uint8_t *bytes, size_t length);
449 PythonByteArray(const PythonBytes &object);
/external/llvm-project/lldb/bindings/python/
Dpython-typemaps.swig159 else if(PythonByteArray::Check($input)) {
160 PythonByteArray bytearray(PyRefType::Borrowed, $input);
182 else if(PythonByteArray::Check($input)) {
183 PythonByteArray bytearray(PyRefType::Borrowed, $input);
/external/llvm-project/lldb/unittests/ScriptInterpreter/Python/
DPythonDataObjectsTests.cpp246 EXPECT_TRUE(PythonByteArray::Check(py_bytes)); in TEST_F()
247 PythonByteArray python_bytes(PyRefType::Owned, py_bytes); in TEST_F()