@Test public void errorByteBuf() { ByteBuf buffer = Unpooled.buffer(); buffer.writeByte((byte)0x04); buffer.writeByte((byte)0x01); buffer.writeByte((byte)0x00); buffer.writeByte((byte)0x00); AmsError error = AmsError.of(buffer); assertThat(error.getAsLong(), is(260L)); }
public static AmsError of(byte... values) { return new AmsError(values); }
AmsError extends UnsignedIntLEByteValue { public static AmsError of(byte... values) { return new AmsError(values); } }
AmsError extends UnsignedIntLEByteValue { public static AmsError of(byte... values) { return new AmsError(values); } private  AmsError(byte... values); private  AmsError(long value); private  AmsError(ByteBuf byteBuf); }
AmsError extends UnsignedIntLEByteValue { public static AmsError of(byte... values) { return new AmsError(values); } private  AmsError(byte... values); private  AmsError(long value); private  AmsError(ByteBuf byteBuf); static AmsError of(byte... values); static AmsError of(long errorCode); static AmsError of(AdsReturnCode errorCode); static AmsError of(String errorCode); static AmsError of(ByteBuf byteBuf); AdsReturnCode toAdsReturnCode(); @Override String toString(); }
AmsError extends UnsignedIntLEByteValue { public static AmsError of(byte... values) { return new AmsError(values); } private  AmsError(byte... values); private  AmsError(long value); private  AmsError(ByteBuf byteBuf); static AmsError of(byte... values); static AmsError of(long errorCode); static AmsError of(AdsReturnCode errorCode); static AmsError of(String errorCode); static AmsError of(ByteBuf byteBuf); AdsReturnCode toAdsReturnCode(); @Override String toString(); static final int NUM_BYTES; static final AmsError NONE; }