public byte[] intBytes(int value) throws SerializationException { return (_byteOrder == ByteOrder.BIG_ENDIAN) ? Numbers.intBytesBE(value) : Numbers.intBytesLE(value); }
@Override public byte[] serialize(Integer value) throws SerializationException { return (_byteOrder == ByteOrder.BIG_ENDIAN) ? Numbers.intBytesBE(value) : Numbers.intBytesLE(value); }
public int intValue(byte[] bytes) { return (_byteOrder == ByteOrder.BIG_ENDIAN) ? Numbers.intValueBE(bytes) : Numbers.intValueLE(bytes); }
@Override public Integer deserialize(byte[] bytes) throws SerializationException { return (_byteOrder == ByteOrder.BIG_ENDIAN) ? Numbers.intValueBE(bytes) : Numbers.intValueLE(bytes); }