private ToUInt64 ( byte value, int startIndex ) : ulong | ||
value | byte | |
startIndex | int | |
return | ulong |
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 }); }
public static ulong ToUInt64(ReadOnlySpan <byte> value) => Converter.ToUInt64(value);