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