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

Function AlignStream

cpp/src/arrow/ipc/message.cc:513–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513Status AlignStream(io::InputStream* stream, int32_t alignment) {
514 ARROW_ASSIGN_OR_RAISE(int64_t position, stream->Tell());
515 return stream->Advance(PaddedLength(position, alignment) - position);
516}
517
518Status AlignStream(io::OutputStream* stream, int32_t alignment) {
519 ARROW_ASSIGN_OR_RAISE(int64_t position, stream->Tell());

Callers 2

Calls 4

PaddedLengthFunction · 0.70
OKFunction · 0.50
AdvanceMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected