Returns a conservative estimate of the number of bytes needed to encode the buffered indices. Used to size the buffer passed to WriteData().
| 81 | /// Returns a conservative estimate of the number of bytes needed to encode the buffered |
| 82 | /// indices. Used to size the buffer passed to WriteData(). |
| 83 | int EstimatedDataEncodedSize() { |
| 84 | return 1 + RleEncoder::MaxBufferSize(bit_width(), buffered_indices_.size()); |
| 85 | } |
| 86 | |
| 87 | /// The minimum bit width required to encode the currently buffered indices. |
| 88 | int bit_width() const { |