Exemplo n.º 1
0
 public static int PeekInt(this BitBuffer buffer, Int32Compressor compressor)
 {
     if (compressor.RequiredBits > Config.VARINT_FALLBACK_SIZE)
     {
         return(compressor.Unpack(buffer.PeekUInt()));
     }
     else
     {
         return(compressor.Unpack(buffer.Peek(compressor.RequiredBits)));
     }
 }
Exemplo n.º 2
0
 public static SequenceId PeekSequenceId(this BitBuffer buffer)
 {
     return(new SequenceId(buffer.Peek(SequenceId.BITS_USED)));
 }