Beispiel #1
0
 internal MutableStringTableEntry?SetEntryData(MutableStringTable table, MutableStringTableEntry entry)
 {
     if (!TableReadable[table.Name])
     {
         return(null);
     }
     entry.EntryData = StringTableEntryDataFactory.CreateEntryData(_demoRef, null, table.Name, entry.EntryName);
     return(entry);
 }
Beispiel #2
0
 protected override void Parse(ref BitStreamReader bsr)
 {
     Name = bsr.ReadNullTerminatedString();
     if (bsr.ReadBool())
     {
         ushort byteLen = bsr.ReadUShort();
         Debug.Assert(DemoRef.DataTableParser.FlattenedProps != null);
         EntryData = StringTableEntryDataFactory.CreateEntryData(DemoRef, null, TableRef.Name, Name);
         EntryData.ParseStream(bsr.SplitAndSkip(byteLen * 8));
     }
 }
Beispiel #3
0
        internal MutableStringTableEntry?AddTableEntry(
            MutableStringTable table,
            ref BitStreamReader?entryStream,
            int?decompressedIndex,
            string entryName)
        {
            var entry = AddTableEntry(table, null, entryName);

            if (entryStream.HasValue && entry != null)
            {
                entry.EntryData = StringTableEntryDataFactory.CreateEntryData(_demoRef, decompressedIndex, table.Name, entryName);
                entry.EntryData.ParseStream(entryStream.Value);
            }
            return(entry);
        }