Пример #1
0
        public static IMAGE_SYMBOL LoadFrom(BinaryReader r)
        {
            IMAGE_SYMBOL h = new IMAGE_SYMBOL();

            h.ShortName          = r.ReadBytes(8);
            h.Value              = r.ReadUInt32();
            h.SectionNumber      = r.ReadInt16();
            h.Type               = (SymType)r.ReadUInt16();
            h.StorageClass       = (SymStorageClass)r.ReadByte();
            h.NumberOfAuxSymbols = r.ReadByte();
            return(h);
        }
Пример #2
0
 public static IMAGE_SYMBOL LoadFrom(BinaryReader r)
 {
     IMAGE_SYMBOL h = new IMAGE_SYMBOL();
     h.ShortName = r.ReadBytes(8);
     h.Value = r.ReadUInt32();
     h.SectionNumber = r.ReadInt16();
     h.Type = (SymType)r.ReadUInt16();
     h.StorageClass = (SymStorageClass)r.ReadByte();
     h.NumberOfAuxSymbols = r.ReadByte();
     return h;
 }