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

Function CheckAligned

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

Source from the content-addressed store, hash-verified

525}
526
527Status CheckAligned(io::FileInterface* stream, int32_t alignment) {
528 ARROW_ASSIGN_OR_RAISE(int64_t position, stream->Tell());
529 if (position % alignment != 0) {
530 return Status::Invalid("Stream is not aligned pos: ", position,
531 " alignment: ", alignment);
532 } else {
533 return Status::OK();
534 }
535}
536
537Status DecodeMessage(MessageDecoder* decoder, io::InputStream* file) {
538 if (decoder->state() == MessageDecoder::State::INITIAL) {

Callers

nothing calls this directly

Calls 2

InvalidFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected