Inheritance: DomainUpkBuilderBase
Exemplo n.º 1
0
    public DomainHeader(ByteArrayReader Reader) {
      reader = Reader;

      Group = new DomainString();

      GenerationTable = new List<DomainGenerationTableEntry>();

      CompressedChunks = new List<DomainCompressedChunk>();

      NameTable = new List<DomainNameTableEntry>();

      ExportTable = new List<DomainExportTableEntry>();
      ImportTable = new List<DomainImportTableEntry>();
    }
Exemplo n.º 2
0
        public DomainHeader(ByteArrayReader Reader)
        {
            reader = Reader;

            Group = new DomainString();

            GenerationTable = new List <DomainGenerationTableEntry>();

            CompressedChunks = new List <DomainCompressedChunk>();

            NameTable = new List <DomainNameTableEntry>();

            ExportTable = new List <DomainExportTableEntry>();
            ImportTable = new List <DomainImportTableEntry>();
        }
    public static DomainNameTableEntry AddDomainNameTableEntry(this List<DomainNameTableEntry> nameTable, string value) {
      DomainString valueString = new DomainString();

      valueString.SetString(value);

      int index = nameTable.Max(nt => nt.TableIndex) + 1;

      DomainNameTableEntry entry = new DomainNameTableEntry();

      entry.SetNameTableEntry(valueString, 0x0007001000000000, index);

      nameTable.Add(entry);

      return entry;
    }