| 1400 | Status UpdatePosition() { return sink_->Tell().Value(&position_); } |
| 1401 | |
| 1402 | Status UpdatePositionCheckAligned() { |
| 1403 | RETURN_NOT_OK(UpdatePosition()); |
| 1404 | DCHECK_EQ(0, position_ % 8) << "Stream is not aligned"; |
| 1405 | return Status::OK(); |
| 1406 | } |
| 1407 | |
| 1408 | Status Align(int32_t alignment = kArrowIpcAlignment) { |
| 1409 | // Adds padding bytes if necessary to ensure all memory blocks are written on |