mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Yannick Lecaillez
28.35.2015 e00782b41217d2adc51ce0e4af14260d0050550a
Add variable encoding maximum size constant.
2 files modified
7 ■■■■■ changed files
opendj-sdk/opendj-core/src/main/java/com/forgerock/opendj/util/PackedLong.java 4 ●●●● patch | view | raw | blame | history
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/ByteStringBuilder.java 3 ●●●●● patch | view | raw | blame | history
opendj-sdk/opendj-core/src/main/java/com/forgerock/opendj/util/PackedLong.java
@@ -35,6 +35,10 @@
 * 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() {
    }
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/ByteStringBuilder.java
@@ -47,6 +47,9 @@
 */
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