public static IMAGE_FILE_HEADER LoadFrom(BinaryReader r) { IMAGE_FILE_HEADER h = new IMAGE_FILE_HEADER(); h.Machine = (MachineType)r.ReadUInt16(); h.NumberOfSections = r.ReadUInt16(); h.TimeDateStamp = r.ReadUInt32(); h.PointerToSymbolTable = r.ReadUInt32(); h.NumberOfSymbols = r.ReadUInt32(); h.SizeOfOptionalHeader = r.ReadUInt16(); h.Characteristics = r.ReadUInt16(); return(h); }
public static IMAGE_FILE_HEADER LoadFrom(BinaryReader r) { IMAGE_FILE_HEADER h = new IMAGE_FILE_HEADER(); h.Machine = (MachineType)r.ReadUInt16(); h.NumberOfSections = r.ReadUInt16(); h.TimeDateStamp = r.ReadUInt32(); h.PointerToSymbolTable = r.ReadUInt32(); h.NumberOfSymbols = r.ReadUInt32(); h.SizeOfOptionalHeader = r.ReadUInt16(); h.Characteristics = r.ReadUInt16(); return h; }