Home
last modified time | relevance | path

Searched refs:PythonBytes (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.cpp166 if (PythonBytes::Check(m_py_obj)) in GetObjectType()
279 return PythonBytes(PyRefType::Borrowed, m_py_obj).CreateStructuredString(); in CreateStructuredObject()
293 PythonBytes::PythonBytes(llvm::ArrayRef<uint8_t> bytes) { SetBytes(bytes); } in PythonBytes() function in PythonBytes
295 PythonBytes::PythonBytes(const uint8_t *bytes, size_t length) { in PythonBytes() function in PythonBytes
299 bool PythonBytes::Check(PyObject *py_obj) { in Check()
305 llvm::ArrayRef<uint8_t> PythonBytes::GetBytes() const { in GetBytes()
316 size_t PythonBytes::GetSize() const { in GetSize()
322 void PythonBytes::SetBytes(llvm::ArrayRef<uint8_t> bytes) { in SetBytes()
324 *this = Take<PythonBytes>(PyBytes_FromStringAndSize(data, bytes.size())); in SetBytes()
327 StructuredData::StringSP PythonBytes::CreateStructuredString() const { in CreateStructuredString()
H A DPythonDataObjects.h67 class PythonBytes; variable
400 class PythonBytes : public TypedPythonObject<PythonBytes> {
403 explicit PythonBytes(llvm::ArrayRef<uint8_t> bytes);
404 PythonBytes(const uint8_t *bytes, size_t length);
422 PythonByteArray(const PythonBytes &object);
H A DScriptInterpreterPython.cpp1664 PythonBytes result(PyRefType::Borrowed, py_return.get()); in OSPlugin_RegisterContextData()
/llvm-project-15.0.7/lldb/bindings/python/
H A Dpython-typemaps.swig163 } else if (PythonBytes::Check($input)) {
164 PythonBytes bytes(PyRefType::Borrowed, $input);
183 } else if (PythonBytes::Check($input)) {
184 PythonBytes bytes(PyRefType::Borrowed, $input);
219 PythonBytes bytes(static_cast<const uint8_t *>($1), result);
/llvm-project-15.0.7/lldb/unittests/ScriptInterpreter/Python/
H A DPythonDataObjectsTests.cpp213 EXPECT_TRUE(PythonBytes::Check(py_bytes)); in TEST_F()
214 PythonBytes python_bytes(PyRefType::Owned, py_bytes); in TEST_F()