コード例 #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);
 }