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

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

            long value = EncodeHelpers.DecodeZigZag(tmp);

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

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

            return(result.Select(x => EncodeHelpers.DecodeZigZag((ulong)x)).ToArray());
        }
Beispiel #5
0
        public async Task <uint> ReadInt32BigEndianAsync()
        {
            var bytes = await ReadBytesAsync(4);

            return(EncodeHelpers.DecodeInt32BigEndian(bytes));
        }
Beispiel #6
0
        public uint ReadInt32BigEndian()
        {
            var bytes = ReadBytes(4);

            return(EncodeHelpers.DecodeInt32BigEndian(bytes));
        }