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

Method Reset

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

Source from the content-addressed store, hash-verified

60}
61
62Status BufferOutputStream::Reset(int64_t initial_capacity, MemoryPool* pool) {
63 ARROW_ASSIGN_OR_RAISE(buffer_, AllocateResizableBuffer(initial_capacity, pool));
64 is_open_ = true;
65 capacity_ = initial_capacity;
66 position_ = 0;
67 mutable_data_ = buffer_->mutable_data();
68 return Status::OK();
69}
70
71BufferOutputStream::~BufferOutputStream() {
72 if (buffer_) {

Callers 3

CreateMethod · 0.45
RefillDecompressedMethod · 0.45
TEST_FFunction · 0.45

Calls 4

AllocateResizableBufferFunction · 0.85
ARROW_ASSIGN_OR_RAISEFunction · 0.50
OKFunction · 0.50
mutable_dataMethod · 0.45

Tested by 1

TEST_FFunction · 0.36