Example #1
0
 public STRM(EndianBinaryReaderEx er)
 {
     er.ReadObject(this);
     Entries = new STRMEntry[NrEntries];
     for (int i = 0; i < NrEntries; i++)
     {
         Entries[i] = new STRMEntry(er);
     }
 }
Example #2
0
 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);
     }
 }
Example #3
0
 public void addSTRMEntry(STRMEntry e)
 {
     NrEntries++;
     Entries.Add(e);
 }