Searched refs:PythonBytes (Results 1 – 5 of 5) sorted by relevance
166 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 PythonBytes295 PythonBytes::PythonBytes(const uint8_t *bytes, size_t length) { in PythonBytes() function in PythonBytes299 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()
67 class PythonBytes; variable400 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);
1664 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);
213 EXPECT_TRUE(PythonBytes::Check(py_bytes)); in TEST_F()214 PythonBytes python_bytes(PyRefType::Owned, py_bytes); in TEST_F()