MCPcopy Create free account
hub / github.com/apache/arrow / ReadBuffer

Method ReadBuffer

python/pyarrow/src/arrow/python/io.cc:116–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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());

Callers 1

ReadMethod · 0.45

Calls 2

cpp_PyObject_CallMethodFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected