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

Method Read

cpp/src/arrow/io/file.cc:704–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702}
703
704Result<int64_t> MemoryMappedFile::Read(int64_t nbytes, void* out) {
705 RETURN_NOT_OK(memory_map_->CheckClosed());
706 ARROW_ASSIGN_OR_RAISE(int64_t bytes_read, ReadAt(memory_map_->position(), nbytes, out));
707 memory_map_->advance(bytes_read);
708 return bytes_read;
709}
710
711Result<std::shared_ptr<Buffer>> MemoryMappedFile::Read(int64_t nbytes) {
712 RETURN_NOT_OK(memory_map_->CheckClosed());

Callers 1

DoReadMethod · 0.45

Calls 3

CheckClosedMethod · 0.45
advanceMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected