/** * Returns an upper bound on the number of bytes that will be required to represent this histogram in * the tighter representation. */ @Override public int smallByteSize() { int bound = byteSize(); ByteBuffer buf = ByteBuffer.allocate(bound); asSmallBytes(buf); return buf.position(); }