public override void Decode() { MemoryStream memoryStream = new MemoryStream(this.Data); this.SubRecords.Clear(); while (memoryStream.Position < (long)((ulong)this.Size)) { SubRecord subRecord = SubRecord.Read(memoryStream); subRecord.Decode(); this.SubRecords.Add(subRecord); } }
public override void Decode() { MemoryStream stream = new MemoryStream(Data); SubRecords.Clear(); while (stream.Position < Size) { SubRecord subRecord = SubRecord.Read(stream); subRecord.Decode(); SubRecords.Add(subRecord); } }