node/lib/metasm/metasm/exe_format/coff_decode.rb
# decodes a section content (allows simpler LoadedPE override)
decodes a section content (allows simpler LoadedPE override)
decodes a section content ( allows simpler LoadedPE override )
def decode_section_body(s)
		raw = EncodedData.align_size(s.rawsize, @optheader.file_align)
		virt = s.virtsize
		virt = raw = s.rawsize if @header.size_opthdr == 0
		virt = raw if virt == 0
		virt = EncodedData.align_size(virt, @optheader.sect_align)
		s.encoded = @encoded[s.rawaddr, [raw, virt].min] || EncodedData.new
		s.encoded.virtsize = virt
	end
def decode_section_body ( s ) raw = EncodedData . align_size ( s . rawsize , @optheader . file_align ) virt = s . virtsize virt = raw = s . rawsize if @header . size_opthdr == 0 virt = raw if virt == 0 virt = EncodedData . align_size ( virt , @optheader . sect_align ) s . encoded = @encoded [ s . rawaddr , [ raw , virt ] . min ] || EncodedData . new s . encoded . virtsize = virt end
decodes a section content (allows simpler LoadedPE override)
decodes a section content ( allows simpler LoadedPE override )
s