public PostingListBinaryWriter(IPersistentStorage storage)
 {
     this.persistentStorage = storage;
     this.buffer            = new int[MemoryBufferSize];
     this.flushBuffer       = new byte[GroupVarint.GetMaxEncodedSize(MemoryBufferSize)];
     this.bufferIndex       = 0;
 }
 public PostingListBinaryDeltaWriter(IPersistentStorage storage)
 {
     this.buffer            = new int[FlushThreshold * 2];
     this.flushBuffer       = new byte[GroupVarint.GetMaxEncodedSize(buffer.Length)];
     this.persistentStorage = storage;
 }