| 174 | } |
| 175 | |
| 176 | inline bool BatchedBitReader::SkipBatch(int bit_width, int num_values_to_skip) { |
| 177 | DCHECK(buffer_pos_ != nullptr); |
| 178 | DCHECK_GT(bit_width, 0); |
| 179 | DCHECK_LE(bit_width, MAX_BITWIDTH); |
| 180 | DCHECK_GT(num_values_to_skip, 0); |
| 181 | |
| 182 | int skip_bytes = BitUtil::RoundUpNumBytes(bit_width * num_values_to_skip); |
| 183 | if (skip_bytes > buffer_end_ - buffer_pos_) return false; |
| 184 | buffer_pos_ += skip_bytes; |
| 185 | return true; |
| 186 | } |
| 187 | |
| 188 | template <typename T> |
| 189 | inline int BatchedBitReader::UnpackAndDecodeBatch( |
no outgoing calls