Example #1
0
 private void  SwitchCurrentBuffer()
 {
     if (currentBufferIndex == file.NumBuffers())
     {
         currentBuffer = file.AddBuffer(BUFFER_SIZE);
     }
     else
     {
         currentBuffer = (byte[])file.GetBuffer(currentBufferIndex);
     }
     bufferPosition = 0;
     bufferStart    = (long)BUFFER_SIZE * (long)currentBufferIndex;
     bufferLength   = currentBuffer.Length;
 }