| 238 | } |
| 239 | |
| 240 | inline uint8_t* BitWriter::GetNextBytePtr(int num_bytes) { |
| 241 | Flush(/* align */ true); |
| 242 | ARROW_DCHECK_LE(byte_offset_, max_bytes_); |
| 243 | if (byte_offset_ + num_bytes > max_bytes_) return NULL; |
| 244 | uint8_t* ptr = buffer_ + byte_offset_; |
| 245 | byte_offset_ += num_bytes; |
| 246 | return ptr; |
| 247 | } |
| 248 | |
| 249 | template <typename T> |
| 250 | inline bool BitWriter::PutAligned(T val, int num_bytes) { |
no test coverage detected