示例#1
0
 @Override
 public Double deserializeFromDirectMemory(ODirectMemory memory, long pointer) {
   return Double.longBitsToDouble(memory.getLong(pointer));
 }
示例#2
0
 @Override
 public Boolean deserializeFromDirectMemory(ODirectMemory memory, long pointer) {
   return memory.getByte(pointer) > 0;
 }
示例#3
0
 @Override
 public void serializeInDirectMemory(Double object, ODirectMemory memory, long pointer) {
   memory.setLong(pointer, Double.doubleToLongBits(object));
 }
示例#4
0
 @Override
 public void serializeInDirectMemory(Boolean object, ODirectMemory memory, long pointer) {
   memory.setByte(pointer, object ? (byte) 1 : 0);
 }