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