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

Method BufferReader

cpp/src/arrow/io/memory.cc:264–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262// In-memory buffer reader
263
264BufferReader::BufferReader(std::shared_ptr<Buffer> buffer)
265 : buffer_(std::move(buffer)),
266 data_(buffer_ ? buffer_->data() : reinterpret_cast<const uint8_t*>("")),
267 size_(buffer_ ? buffer_->size() : 0),
268 position_(0),
269 is_open_(true) {}
270
271std::unique_ptr<BufferReader> BufferReader::FromString(std::string data) {
272 return std::make_unique<BufferReader>(Buffer::FromString(std::move(data)));

Callers 15

funcFunction · 0.80
deserialize_pandasFunction · 0.80
test_v2_set_chunksizeFunction · 0.80
open_input_streamMethod · 0.80
open_input_fileMethod · 0.80
test_buffer_readwriteFunction · 0.80
test_BufferReaderFunction · 0.80
make_table_cudaFunction · 0.80

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by 15

funcFunction · 0.64
test_v2_set_chunksizeFunction · 0.64
open_input_streamMethod · 0.64
open_input_fileMethod · 0.64
test_buffer_readwriteFunction · 0.64
test_BufferReaderFunction · 0.64
make_table_cudaFunction · 0.64
test_bytes_readerFunction · 0.64