Add variable encoding maximum size constant.
| | |
| | | * the interesting properties of maintaining correct order of values when compared. |
| | | */ |
| | | public final class PackedLong { |
| | | |
| | | /** Maximum size in bytes of a compact encoded value. */ |
| | | public static final int MAX_COMPACT_SIZE = 8; |
| | | |
| | | private PackedLong() { |
| | | } |
| | | |
| | |
| | | */ |
| | | public final class ByteStringBuilder implements ByteSequence { |
| | | |
| | | /** Maximum size in bytes of a compact encoded value. */ |
| | | public static final int MAX_COMPACT_SIZE = PackedLong.MAX_COMPACT_SIZE; |
| | | |
| | | /** Output stream implementation. */ |
| | | private final class OutputStreamImpl extends OutputStream { |
| | | @Override |