public static int capacity(final byte headerByte0) {
        final byte recordSizeType = recordSizeType(headerByte0);
        if (recordSizeType != RECORD_SIZE_TYPE_SMALL) {
          throw new IllegalArgumentException("headerByte0(" + headerByte0 + ") doesn't encode SMALL record!");
        }
        return ((headerByte0 & CAPACITY_MASK) << OFFSET_BUCKET_BITS) + MIN_CAPACITY;
      }
public static int capacity(final byte headerByte0)