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

Method Read

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

Source from the content-addressed store, hash-verified

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)",

Callers

nothing calls this directly

Calls 3

cpp_PyObject_CallMethodFunction · 0.85
CheckClosedFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected