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

Method Align

cpp/src/arrow/ipc/writer.cc:1408–1416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1406 }
1407
1408 Status Align(int32_t alignment = kArrowIpcAlignment) {
1409 // Adds padding bytes if necessary to ensure all memory blocks are written on
1410 // 8-byte (or other alignment) boundaries.
1411 int64_t remainder = PaddedLength(position_, alignment) - position_;
1412 if (remainder > 0) {
1413 return Write(kPaddingBytes, remainder);
1414 }
1415 return Status::OK();
1416 }
1417
1418 // Write data and update position
1419 Status Write(const void* data, int64_t nbytes) {

Callers

nothing calls this directly

Calls 3

WriteFunction · 0.85
PaddedLengthFunction · 0.70
OKFunction · 0.50

Tested by

no test coverage detected