/// <inheritdoc/> public void LoadBinaryData(byte[] inData) { using var ms = new MemoryStream(inData); using var br = new BinaryReader(ms); var entryCount = br.BaseStream.Length / ModelPlacementEntry.GetSize(); for (var i = 0; i < entryCount; ++i) { Entries.Add(new ModelPlacementEntry(br.ReadBytes(ModelPlacementEntry.GetSize()))); } }
public void LoadBinaryData(byte[] inData) { using (MemoryStream ms = new MemoryStream(inData)) { using (BinaryReader br = new BinaryReader(ms)) { long EntryCount = br.BaseStream.Length / ModelPlacementEntry.GetSize(); for (int i = 0; i < EntryCount; ++i) { this.Entries.Add(new ModelPlacementEntry(br.ReadBytes(ModelPlacementEntry.GetSize()))); } } } }