public static IMAGE_SECTION_HEADER Deserialize(MultiPartFile file) { IMAGE_SECTION_HEADER ish = new IMAGE_SECTION_HEADER(); ish.Name = file.ReadBytes(Constants.IMAGE_SIZEOF_SHORT_NAME); // Misc ish.PhysicalAddress = file.ReadUInt32(); ish.VirtualSize = ish.PhysicalAddress; ish.VirtualAddress = file.ReadUInt32(); ish.SizeOfRawData = file.ReadUInt32(); ish.PointerToRawData = file.ReadUInt32(); ish.PointerToRelocations = file.ReadUInt32(); ish.PointerToLinenumbers = file.ReadUInt32(); ish.NumberOfRelocations = file.ReadUInt16(); ish.NumberOfLinenumbers = file.ReadUInt16(); ish.Characteristics = (SectionCharacteristics)file.ReadUInt32(); return(ish); }