示例#1
0
        public static long PeekInt64(this RailBitBuffer buffer, RailInt64Compressor compressor)
        {
            if (compressor.RequiredBits > RailConfig.VARINT_FALLBACK_SIZE)
            {
                return(compressor.Unpack(buffer.PeekUInt64()));
            }

            return(compressor.Unpack(buffer.Peek(compressor.RequiredBits)));
        }