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

Method Close

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

Source from the content-addressed store, hash-verified

75}
76
77Status BufferOutputStream::Close() {
78 if (is_open_) {
79 is_open_ = false;
80 if (position_ < capacity_) {
81 RETURN_NOT_OK(buffer_->Resize(position_, false));
82 }
83 }
84 return Status::OK();
85}
86
87bool BufferOutputStream::closed() const { return !is_open_; }
88

Callers

nothing calls this directly

Calls 2

OKFunction · 0.50
ResizeMethod · 0.45

Tested by

no test coverage detected