| 71 | } |
| 72 | |
| 73 | Status WritePadding(io::OutputStream* stream, int64_t nbytes) { |
| 74 | while (nbytes > 0) { |
| 75 | const int64_t bytes_to_write = std::min<int64_t>(nbytes, kArrowAlignment); |
| 76 | RETURN_NOT_OK(stream->Write(kPaddingBytes, bytes_to_write)); |
| 77 | nbytes -= bytes_to_write; |
| 78 | } |
| 79 | return Status::OK(); |
| 80 | } |
| 81 | |
| 82 | } // namespace |
| 83 |
no test coverage detected