예제 #1
0
        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;
        }
예제 #2
0
 public DownloadMessage(DownloadInfo DownloadInfo)
     : base(MessageTypeLoginMode.Download)
 {
     this.DownloadInfo = DownloadInfo;                       
 }
예제 #3
0
 public unsafe override void ReadFrom(ref byte* Buffer)
 {
     base.ReadFrom(ref Buffer);
     DownloadInfo = new DownloadInfo(ref Buffer);          
 }