Microsoft.WindowsAzure.Commands.Tools.Vhd.Model.Persistence.VhdDataReader.EndReadUInt64 C# (CSharp) Method

EndReadUInt64() public method

public EndReadUInt64 ( IAsyncResult result ) : ulong
result IAsyncResult
return ulong
        public ulong EndReadUInt64(IAsyncResult result)
        {
            AsyncMachine.EndAsyncMachine(result);
            uint lo = (uint)(m_buffer[0] | m_buffer[1] << 8 |
                             m_buffer[2] << 16 | m_buffer[3] << 24);
            uint hi = (uint)(m_buffer[4] | m_buffer[5] << 8 |
                             m_buffer[6] << 16 | m_buffer[7] << 24);
            ulong value = ((ulong)hi) << 32 | lo;
            return (ulong)IPAddress.NetworkToHostOrder((long)value);
        }

Usage Example

        private long EndReadPhysicalSize(IAsyncResult result)
        {
            var value = dataReader.EndReadUInt64(result);

            return((long)value);
        }
All Usage Examples Of Microsoft.WindowsAzure.Commands.Tools.Vhd.Model.Persistence.VhdDataReader::EndReadUInt64