| 104 | } |
| 105 | |
| 106 | Status Read(int64_t nbytes, PyObject** out) { |
| 107 | RETURN_NOT_OK(CheckClosed()); |
| 108 | |
| 109 | PyObject* result = cpp_PyObject_CallMethod(file_.obj(), "read", "(L)", |
| 110 | static_cast<long long>(nbytes)); |
| 111 | PY_RETURN_IF_ERROR(StatusCode::IOError); |
| 112 | *out = result; |
| 113 | return Status::OK(); |
| 114 | } |
| 115 | |
| 116 | Status ReadBuffer(int64_t nbytes, PyObject** out) { |
| 117 | PyObject* result = cpp_PyObject_CallMethod(file_.obj(), "read_buffer", "(L)", |
nothing calls this directly
no test coverage detected