Example #1
0
        public static DebugVarEntry From(BinaryReader rd)
        {
            DebugVarEntry entry = new DebugVarEntry();

            entry.address     = rd.ReadInt32();
            entry.scope       = (SymScope)(rd.ReadByte() & 3);
            entry.name_offset = rd.ReadInt32();
            entry.code_start  = rd.ReadInt32();
            entry.code_end    = rd.ReadInt32();
            entry.type_id     = rd.ReadInt32();
            return(entry);
        }
Example #2
0
        public SmxDebugSymbols(FileHeader file, SectionEntry header, SmxNameTable names)
            : base(file, header, names)
        {
            var reader = file.SectionReader(header);

            base.init(reader);

            Entries = new DebugVarEntry[row_count_];
            for (uint i = 0; i < row_count_; i++)
            {
                Entries[i] = DebugVarEntry.From(reader, i);
            }
        }