Searched refs:PythonBytes (Results 1 – 4 of 4) sorted by relevance
165 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 PythonBytes294 PythonBytes::PythonBytes(const uint8_t *bytes, size_t length) { in PythonBytes() function in PythonBytes298 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()
67 class PythonBytes; variable412 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);
1599 PythonBytes result(PyRefType::Borrowed, py_return.get()); in OSPlugin_RegisterContextData()
163 } 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);