Microsoft.Protocols.TestSuites.Common.BufferReader.ReadUInt64 C# (CSharp) Method

ReadUInt64() public method

Reads an 8-byte unsigned integer from the current position and advances the current position of the buffer by 8 bytes.
public ReadUInt64 ( ) : ulong
return ulong
        public ulong ReadUInt64()
        {
            long low = (uint)this.ReadInt32();
            long high = (uint)this.ReadInt32();

            // 0x100000000 is 2 raised to the 32th power plus 1
            return (ulong)((high * 0x100000000) + low);
        }