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

Function AlignStream

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

Source from the content-addressed store, hash-verified

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