Searched refs:PythonBytes (Results 1 – 5 of 5) sorted by relevance
67 class PythonBytes; variable427 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);
162 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 PythonBytes290 PythonBytes::PythonBytes(const uint8_t *bytes, size_t length) { in PythonBytes() function in PythonBytes294 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()
1762 PythonBytes result(PyRefType::Borrowed, py_return.get()); in OSPlugin_RegisterContextData()
164 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);
225 EXPECT_TRUE(PythonBytes::Check(py_bytes)); in TEST_F()226 PythonBytes python_bytes(PyRefType::Owned, py_bytes); in TEST_F()