Esempio n. 1
0
        public long ReadSInt64()
        {
            var  tmp   = ReadUInt64();
            long value = EncodeHelpers.DecodeZigZag(tmp);

            return(value);
        }
Esempio n. 2
0
        public async Task <long> ReadSInt64Async()
        {
            var tmp = await ReadUInt64Async();

            long value = EncodeHelpers.DecodeZigZag(tmp);

            return(value);
        }
Esempio n. 3
0
        public async Task <long[]> ReadPackedSInt64ArrayAsync()
        {
            var result = await ReadPackedInt64ArrayAsync();

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

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