Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.cpp165 if (PythonBytes::Check(m_py_obj)) in GetObjectType()
278 return PythonBytes(PyRefType::Borrowed, m_py_obj).CreateStructuredString(); in CreateStructuredObject()
292 PythonBytes::PythonBytes(llvm::ArrayRef<uint8_t> bytes) { SetBytes(bytes); } in PythonBytes() function in PythonBytes
294 PythonBytes::PythonBytes(const uint8_t *bytes, size_t length) { in PythonBytes() function in PythonBytes
298 bool PythonBytes::Check(PyObject *py_obj) { in Check()
304 llvm::ArrayRef<uint8_t> PythonBytes::GetBytes() const { in GetBytes()
315 size_t PythonBytes::GetSize() const { in GetSize()
321 void PythonBytes::SetBytes(llvm::ArrayRef<uint8_t> bytes) { in SetBytes()
323 *this = Take<PythonBytes>(PyBytes_FromStringAndSize(data, bytes.size())); in SetBytes()
326 StructuredData::StringSP PythonBytes::CreateStructuredString() const { in CreateStructuredString()
H A DPythonDataObjects.h67 class PythonBytes; variable
412 class PythonBytes : public TypedPythonObject<PythonBytes> {
415 explicit PythonBytes(llvm::ArrayRef<uint8_t> bytes);
416 PythonBytes(const uint8_t *bytes, size_t length);
434 PythonByteArray(const PythonBytes &object);
H A DScriptInterpreterPython.cpp1599 PythonBytes result(PyRefType::Borrowed, py_return.get()); in OSPlugin_RegisterContextData()
/openbsd-src/gnu/llvm/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);