示例#1
0
        public long ReadSInt64()
        {
            var  tmp   = ReadUInt64();
            long value = EncodeHelpers.DecodeZigZag(tmp);

            return(value);
        }
示例#2
0
        public async Task <long> ReadSInt64Async()
        {
            var tmp = await ReadUInt64Async();

            long value = EncodeHelpers.DecodeZigZag(tmp);

            return(value);
        }
示例#3
0
        public async Task <long[]> ReadPackedSInt64ArrayAsync()
        {
            var result = await ReadPackedInt64ArrayAsync();

            return(result.Select(x => EncodeHelpers.DecodeZigZag((ulong)x)).ToArray());
        }
示例#4
0
        public long[] ReadPackedSInt64Array()
        {
            var result = ReadPackedInt64Array();

            return(result.Select(x => EncodeHelpers.DecodeZigZag((ulong)x)).ToArray());
        }