segment.nextException_ = prev;
return j; // # of exceptions
}
private static void pack(final CompressedSegment segment, final int[] data, final int n) {
final BitwiseCodec codes = segment.codesBuf;
final int nbits = segment.bitwidth_;
for(int i = 0; i < n; i++) {
codes.putBits(data[i], nbits);
}
}