| 1390 | } |
| 1391 | |
| 1392 | Status Align(int32_t alignment = kArrowIpcAlignment) { |
| 1393 | // Adds padding bytes if necessary to ensure all memory blocks are written on |
| 1394 | // 8-byte (or other alignment) boundaries. |
| 1395 | int64_t remainder = PaddedLength(position_, alignment) - position_; |
| 1396 | if (remainder > 0) { |
| 1397 | return Write(kPaddingBytes, remainder); |
| 1398 | } |
| 1399 | return Status::OK(); |
| 1400 | } |
| 1401 | |
| 1402 | // Write data and update position |
| 1403 | Status Write(const void* data, int64_t nbytes) { |
nothing calls this directly
no test coverage detected