@Test public void ofLong() { assertByte(Length.of(1), "0x01000000"); assertByte(Length.of(65535), "0xffff0000"); assertThrows(IllegalArgumentException.class, () -> Length.of(-1)); assertThrows(IllegalArgumentException.class, () -> Length.of(4294967296L)); }
public static Length of(byte... values) { return new Length(values); }
Length extends UnsignedIntLEByteValue { public static Length of(byte... values) { return new Length(values); } }
Length extends UnsignedIntLEByteValue { public static Length of(byte... values) { return new Length(values); } private  Length(byte... values); private  Length(long value); private  Length(String length); private  Length(ByteBuf byteBuf); }
Length extends UnsignedIntLEByteValue { public static Length of(byte... values) { return new Length(values); } private  Length(byte... values); private  Length(long value); private  Length(String length); private  Length(ByteBuf byteBuf); static Length of(byte... values); static Length of(long value); static Length of(LengthSupplier lengthSupplier); static Length of(ByteBuf byteBuf); static Length of(String length); }
Length extends UnsignedIntLEByteValue { public static Length of(byte... values) { return new Length(values); } private  Length(byte... values); private  Length(long value); private  Length(String length); private  Length(ByteBuf byteBuf); static Length of(byte... values); static Length of(long value); static Length of(LengthSupplier lengthSupplier); static Length of(ByteBuf byteBuf); static Length of(String length); static final int NUM_BYTES; }