Exemple #1
0
 @Override
 public void close() {
   snapshot.closeWriter(this);
   buffer.close();
 }
Exemple #2
0
 @Override
 protected void closeWriter(SnapshotWriter writer) {
   int length = (int) (writer.buffer.position() - (SnapshotDescriptor.BYTES + Integer.BYTES));
   writer.buffer.writeInt(SnapshotDescriptor.BYTES, length).flush();
   super.closeWriter(writer);
 }