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); }
public Chunk() { BHeader = new BasicHeader(); MHeader = new MessageHeader(); Data = null; }