| 114 | } |
| 115 | |
| 116 | Status ReadBuffer(int64_t nbytes, PyObject** out) { |
| 117 | PyObject* result = cpp_PyObject_CallMethod(file_.obj(), "read_buffer", "(L)", |
| 118 | static_cast<long long>(nbytes)); |
| 119 | PY_RETURN_IF_ERROR(StatusCode::IOError); |
| 120 | *out = result; |
| 121 | return Status::OK(); |
| 122 | } |
| 123 | |
| 124 | Status Write(const void* data, int64_t nbytes) { |
| 125 | RETURN_NOT_OK(CheckClosed()); |
no test coverage detected