ImageWriter(ModuleDefinition module, MetadataBuilder metadata, Stream stream) : base(stream) { this.module = module; this.metadata = metadata; this.GetDebugHeader(); this.GetWin32Resources(); this.text_map = BuildTextMap(); this.sections = 2; // text + reloc this.pe64 = module.Architecture != TargetArchitecture.I386; this.time_stamp = (uint)DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).TotalSeconds; }
ImageWriter (ModuleDefinition module, MetadataBuilder metadata, Stream stream) : base (stream) { this.module = module; this.metadata = metadata; this.GetDebugHeader (); this.GetWin32Resources (); this.text_map = BuildTextMap (); this.sections = 2; // text + reloc this.pe64 = module.Architecture != TargetArchitecture.I386; this.time_stamp = (uint) DateTime.UtcNow.Subtract (new DateTime (1970, 1, 1)).TotalSeconds; }