Lines Matching defs:PythonBytes
167 if (PythonBytes::Check(m_py_obj))
286 return PythonBytes(PyRefType::Borrowed, m_py_obj).CreateStructuredString();
300 PythonBytes::PythonBytes(llvm::ArrayRef<uint8_t> bytes) { SetBytes(bytes); }
302 PythonBytes::PythonBytes(const uint8_t *bytes, size_t length) {
306 bool PythonBytes::Check(PyObject *py_obj) {
312 llvm::ArrayRef<uint8_t> PythonBytes::GetBytes() const {
323 size_t PythonBytes::GetSize() const {
329 void PythonBytes::SetBytes(llvm::ArrayRef<uint8_t> bytes) {
331 *this = Take<PythonBytes>(PyBytes_FromStringAndSize(data, bytes.size()));
334 StructuredData::StringSP PythonBytes::CreateStructuredString() const {