Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.cpp169 if (PythonBytes::Check(m_py_obj)) in GetObjectType()
288 return PythonBytes(PyRefType::Borrowed, m_py_obj).CreateStructuredString(); in CreateStructuredObject()
302 PythonBytes::PythonBytes(llvm::ArrayRef<uint8_t> bytes) { SetBytes(bytes); } in PythonBytes() function in PythonBytes
304 PythonBytes::PythonBytes(const uint8_t *bytes, size_t length) { in PythonBytes() function in PythonBytes
308 bool PythonBytes::Check(PyObject *py_obj) { in Check()
314 llvm::ArrayRef<uint8_t> PythonBytes::GetBytes() const { in GetBytes()
325 size_t PythonBytes::GetSize() const { in GetSize()
331 void PythonBytes::SetBytes(llvm::ArrayRef<uint8_t> bytes) { in SetBytes()
333 *this = Take<PythonBytes>(PyBytes_FromStringAndSize(data, bytes.size())); in SetBytes()
336 StructuredData::StringSP PythonBytes::CreateStructuredString() const { in CreateStructuredString()
H A DPythonDataObjects.h67 class PythonBytes; variable
424 class PythonBytes : public TypedPythonObject<PythonBytes> {
427 explicit PythonBytes(llvm::ArrayRef<uint8_t> bytes);
428 PythonBytes(const uint8_t *bytes, size_t length);
446 PythonByteArray(const PythonBytes &object);
/freebsd/contrib/llvm-project/lldb/bindings/python/
H A Dpython-typemaps.swig249 } else if (PythonBytes::Check($input)) {
250 PythonBytes bytes(PyRefType::Borrowed, $input);
270 } else if (PythonBytes::Check($input)) {
271 PythonBytes bytes(PyRefType::Borrowed, $input);
304 PythonBytes bytes(static_cast<const uint8_t *>($1), result);