Example #1
0
 internal Reader(PagedBytes pagedBytes)
 {
     blocks = new byte[pagedBytes.blocks.Count][];
     for (var i = 0; i < blocks.Length; i++)
     {
         blocks[i] = pagedBytes.blocks[i];
     }
     blockEnds = new int[blocks.Length];
     for (int i = 0; i < blockEnds.Length; i++)
     {
         blockEnds[i] = pagedBytes.blockEnd[i];
     }
     blockBits = pagedBytes.blockBits;
     blockMask = pagedBytes.blockMask;
     blockSize = pagedBytes.blockSize;
 }
Example #2
0
 internal PagedBytesDataInput(PagedBytes outerInstance)
 {
     this.outerInstance = outerInstance;
     currentBlock       = outerInstance.blocks[0];
 }
Example #3
0
 public PagedBytesDataOutput(PagedBytes outerInstance)
 {
     this.outerInstance = outerInstance;
 }
Example #4
0
 public PagedBytesDataOutput(PagedBytes pagedBytes)
 {
     this.outerInstance = pagedBytes;
 }