예제 #1
0
 public void AnnotatePosition(IStatistics statistics, long rleValuesToConsume)
 {
     if (_compressionKind == Protocol.CompressionKind.None)
     {
         statistics.AnnotatePosition(Length + _currentBlock.Length, rleValuesToConsume);                      //If we're not compressing, output the total length as a single value
     }
     else
     {
         statistics.AnnotatePosition(Length, _currentBlock.Length, rleValuesToConsume);
     }
 }
예제 #2
0
 public void AnnotatePosition(IStatistics statistics, int?rleValuesToConsume = null, int?bitsToConsume = null)
 {
     if (_compressionKind == Protocol.CompressionKind.None)
     {
         statistics.AnnotatePosition(storedBufferOffset: Length + _currentBlock.Length, rleValuesToConsume: rleValuesToConsume, bitsToConsume: bitsToConsume);      //If we're not compressing, output the total length as a single value
     }
     else
     {
         statistics.AnnotatePosition(storedBufferOffset: Length, decompressedOffset: _currentBlock.Length, rleValuesToConsume: rleValuesToConsume, bitsToConsume: bitsToConsume);
     }
 }