public static int ReadInt(this BitBuffer buffer, Int32Compressor compressor) { if (compressor.RequiredBits > Config.VARINT_FALLBACK_SIZE) { return(compressor.Unpack(buffer.ReadUInt())); } else { return(compressor.Unpack(buffer.Read(compressor.RequiredBits))); } }
public static SequenceId ReadSequenceId(this BitBuffer buffer) { return(new SequenceId(buffer.Read(SequenceId.BITS_USED))); }