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

Method Align

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

Source from the content-addressed store, hash-verified

1383 }
1384
1385 Status Align(int32_t alignment = kArrowIpcAlignment) {
1386 // Adds padding bytes if necessary to ensure all memory blocks are written on
1387 // 8-byte (or other alignment) boundaries.
1388 int64_t remainder = PaddedLength(position_, alignment) - position_;
1389 if (remainder > 0) {
1390 return Write(kPaddingBytes, remainder);
1391 }
1392 return Status::OK();
1393 }
1394
1395 // Write data and update position
1396 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