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