示例#1
0
 public byte[] intBytes(int value) throws SerializationException {
   return (_byteOrder == ByteOrder.BIG_ENDIAN)
       ? Numbers.intBytesBE(value)
       : Numbers.intBytesLE(value);
 }
示例#2
0
 @Override
 public byte[] serialize(Integer value) throws SerializationException {
   return (_byteOrder == ByteOrder.BIG_ENDIAN)
       ? Numbers.intBytesBE(value)
       : Numbers.intBytesLE(value);
 }