Exemplo n.º 1
0
 public final void writeNew(
     Transaction trans, Pointer4 pointer, ClassMetadata classMetadata, ByteArrayBuffer buffer) {
   writeEncrypt(buffer, pointer.address(), 0);
   if (classMetadata == null) {
     return;
   }
   classMetadata.addToIndex(trans, pointer.id());
 }
Exemplo n.º 2
0
 public final void writeUpdate(
     Transaction trans,
     Pointer4 pointer,
     ClassMetadata classMetadata,
     ArrayType arrayType,
     ByteArrayBuffer buffer) {
   int address = pointer.address();
   if (address == 0) {
     address = allocateSlotForUserObjectUpdate(trans, pointer.id(), pointer.length()).address();
   }
   writeEncrypt(buffer, address, 0);
 }