Beispiel #1
0
        public void Load(MemoryStream memory)
        {
            BHeader = new BasicHeader();
            BHeader.Load(memory);

            MHeader = new MessageHeader();
            MHeader.Format = BHeader.Format;
            MHeader.Load(memory);
            Data = new byte[MHeader.MessageLength];
            memory.Read(Data, 0, MHeader.MessageLength);
            var dataMemory = new MemoryStream(Data);
            ParseChunkData(dataMemory);
        }
Beispiel #2
0
 public Chunk()
 {
     BHeader = new BasicHeader();
     MHeader = new MessageHeader();
     Data = null;
 }