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

Method Read

cpp/src/arrow/io/stdio.cc:76–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74Result<int64_t> StdinStream::Tell() const { return pos_; }
75
76Result<int64_t> StdinStream::Read(int64_t nbytes, void* out) {
77 std::cin.read(reinterpret_cast<char*>(out), nbytes);
78 nbytes = std::cin.gcount();
79 pos_ += nbytes;
80 return nbytes;
81}
82
83Result<std::shared_ptr<Buffer>> StdinStream::Read(int64_t nbytes) {
84 ARROW_ASSIGN_OR_RAISE(auto buffer, AllocateResizableBuffer(nbytes));

Callers

nothing calls this directly

Calls 2

readMethod · 0.45
ResizeMethod · 0.45

Tested by

no test coverage detected