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

Method Create

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

Source from the content-addressed store, hash-verified

52 mutable_data_(buffer->mutable_data()) {}
53
54Result<std::shared_ptr<BufferOutputStream>> BufferOutputStream::Create(
55 int64_t initial_capacity, MemoryPool* pool) {
56 // ctor is private, so cannot use make_shared
57 auto ptr = std::shared_ptr<BufferOutputStream>(new BufferOutputStream);
58 RETURN_NOT_OK(ptr->Reset(initial_capacity, pool));
59 return ptr;
60}
61
62Status BufferOutputStream::Reset(int64_t initial_capacity, MemoryPool* pool) {
63 ARROW_ASSIGN_OR_RAISE(buffer_, AllocateResizableBuffer(initial_capacity, pool));

Callers

nothing calls this directly

Calls 1

ResetMethod · 0.45

Tested by

no test coverage detected