public STRM(EndianBinaryReaderEx er) { er.ReadObject(this); Entries = new STRMEntry[NrEntries]; for (int i = 0; i < NrEntries; i++) { Entries[i] = new STRMEntry(er); } }
public STRM(EndianBinaryReader er) { Signature = er.ReadString(Encoding.ASCII, 4); if (Signature != "MRTS") { throw new SignatureNotCorrectException(Signature, "MRTS", er.BaseStream.Position - 4); } NrEntries = er.ReadUInt16(); Unknown = er.ReadUInt16(); Entries = new STRMEntry[NrEntries]; for (int i = 0; i < NrEntries; i++) { Entries[i] = new STRMEntry(er); } }
public void addSTRMEntry(STRMEntry e) { NrEntries++; Entries.Add(e); }