Exemplo n.º 1
0
 public BufferWriter(int minimumSize, LazinatorMemory completedMemory)
 {
     if (minimumSize == 0)
         minimumSize = ExpandableBytes.DefaultMinBufferSize;
     ActiveMemory = new ExpandableBytes(minimumSize);
     ActiveMemory.UsedBytesInCurrentBuffer = 0;
     LengthsPosition = (0, 0);
     MemorySegmentCollection = new MemorySegmentCollection(completedMemory, true);
 }
Exemplo n.º 2
0
 public BufferWriter(int minimumSize)
 {
     if (minimumSize == 0)
         minimumSize = ExpandableBytes.DefaultMinBufferSize;
     ActiveMemory = new ExpandableBytes(minimumSize);
     ActiveMemory.UsedBytesInCurrentBuffer = 0;
     LengthsPosition = (0, 0);
     MemorySegmentCollection = null;
 }
Exemplo n.º 3
0
 private void InitializeIfNecessary()
 {
     if (ActiveMemory == null)
         ActiveMemory = new ExpandableBytes();
 }