public override int ReadFrom(byte[] Buffer, int StartIndex = 0) { int cursor = StartIndex; cursor += base.ReadFrom(Buffer, cursor); DownloadInfo = new DownloadInfo(Buffer, cursor); cursor += DownloadInfo.ByteLength; return cursor - StartIndex; }
public DownloadMessage(DownloadInfo DownloadInfo) : base(MessageTypeLoginMode.Download) { this.DownloadInfo = DownloadInfo; }
public unsafe override void ReadFrom(ref byte* Buffer) { base.ReadFrom(ref Buffer); DownloadInfo = new DownloadInfo(ref Buffer); }