Lines Matching defs:PythonBytes
169 if (PythonBytes::Check(m_py_obj))
288 return PythonBytes(PyRefType::Borrowed, m_py_obj).CreateStructuredString();
302 PythonBytes::PythonBytes(llvm::ArrayRef<uint8_t> bytes) { SetBytes(bytes); }
304 PythonBytes::PythonBytes(const uint8_t *bytes, size_t length) {
308 bool PythonBytes::Check(PyObject *py_obj) {
314 llvm::ArrayRef<uint8_t> PythonBytes::GetBytes() const {
325 size_t PythonBytes::GetSize() const {
331 void PythonBytes::SetBytes(llvm::ArrayRef<uint8_t> bytes) {
333 *this = Take<PythonBytes>(PyBytes_FromStringAndSize(data, bytes.size()));
336 StructuredData::StringSP PythonBytes::CreateStructuredString() const {