Home
last modified time | relevance | path

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

/external/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
DPythonDataObjects.h67 class PythonBytes; variable
427 class PythonBytes : public TypedPythonObject<PythonBytes> {
430 explicit PythonBytes(llvm::ArrayRef<uint8_t> bytes);
431 PythonBytes(const uint8_t *bytes, size_t length);
449 PythonByteArray(const PythonBytes &object);
DPythonDataObjects.cpp162 if (PythonBytes::Check(m_py_obj)) in GetObjectType()
275 return PythonBytes(PyRefType::Borrowed, m_py_obj).CreateStructuredString(); in CreateStructuredObject()
288 PythonBytes::PythonBytes(llvm::ArrayRef<uint8_t> bytes) { SetBytes(bytes); } in PythonBytes() function in PythonBytes
290 PythonBytes::PythonBytes(const uint8_t *bytes, size_t length) { in PythonBytes() function in PythonBytes
294 bool PythonBytes::Check(PyObject *py_obj) { in Check()
300 llvm::ArrayRef<uint8_t> PythonBytes::GetBytes() const { in GetBytes()
311 size_t PythonBytes::GetSize() const { in GetSize()
317 void PythonBytes::SetBytes(llvm::ArrayRef<uint8_t> bytes) { in SetBytes()
319 *this = Take<PythonBytes>(PyBytes_FromStringAndSize(data, bytes.size())); in SetBytes()
322 StructuredData::StringSP PythonBytes::CreateStructuredString() const { in CreateStructuredString()
DScriptInterpreterPython.cpp1762 PythonBytes result(PyRefType::Borrowed, py_return.get()); in OSPlugin_RegisterContextData()
/external/llvm-project/lldb/bindings/python/
Dpython-typemaps.swig164 else if (PythonBytes::Check($input)) {
165 PythonBytes bytes(PyRefType::Borrowed, $input);
187 else if (PythonBytes::Check($input)) {
188 PythonBytes bytes(PyRefType::Borrowed, $input);
224 PythonBytes bytes(static_cast<const uint8_t*>($1), result);
/external/llvm-project/lldb/unittests/ScriptInterpreter/Python/
DPythonDataObjectsTests.cpp225 EXPECT_TRUE(PythonBytes::Check(py_bytes)); in TEST_F()
226 PythonBytes python_bytes(PyRefType::Owned, py_bytes); in TEST_F()