| 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) { |
nothing calls this directly
no test coverage detected