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

Method HasReadBuffer

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

Source from the content-addressed store, hash-verified

166 std::mutex& lock() { return lock_; }
167
168 bool HasReadBuffer() {
169 if (!checked_read_buffer_) { // we don't want to check this each time
170 has_read_buffer_ = PyObject_HasAttrString(file_.obj(), "read_buffer") == 1;
171 checked_read_buffer_ = true;
172 }
173 return has_read_buffer_;
174 }
175
176 private:
177 std::mutex lock_;

Callers 1

ReadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected