System.BitConverter.ToUInt64 C# (CSharp) Метод

ToUInt64() приватный Метод

private ToUInt64 ( byte value, int startIndex ) : ulong
value byte
startIndex int
Результат ulong
        public static ulong ToUInt64(byte[] value, int startIndex)
        {
            return (ulong)ToInt64(value, startIndex);
        }
    

Usage Example

Пример #1
0
            public static BinaryLog Deserialize(MemoryStream stream, byte baseLength)
            {
                var type   = stream.ReadByte();
                var buffer = new byte[8];

                stream.Read(buffer, 0, 8);
                var epoch = BitConverter.ToUInt64(buffer, 0);

                buffer = new byte[baseLength - 9];
                stream.Read(buffer, 0, buffer.Length);
                return(new BinaryLog
                {
                    BaseLength = baseLength,
                    Type = (Shared.LogType)type,
                    TimeStamp = GetTime(epoch),
                    LogData = buffer
                });
            }
All Usage Examples Of System.BitConverter::ToUInt64