node/lib/metasm/metasm/exe_format/macho.rb
def segment_at(addr)
		return if not addr or addr <= 0
		if seg = @segments.find { |seg_| addr >= seg_.virtaddr and addr < seg_.virtaddr + seg_.virtsize }
			seg.encoded.ptr = addr - seg.virtaddr
			seg
		end
	end
# return the segment containing address, set seg.encoded.ptr to the correct offset
return the segment containing address, set seg.encoded.ptr to the correct offset
return the segment containing address set seg . encoded . ptr to the correct offset
def segment_at(addr)
		return if not addr or addr <= 0
		if seg = @segments.find { |seg_| addr >= seg_.virtaddr and addr < seg_.virtaddr + seg_.virtsize }
			seg.encoded.ptr = addr - seg.virtaddr
			seg
		end
	end
def segment_at ( addr ) return if not addr or addr <= 0 if seg = @segments . find { | seg_ | addr >= seg_ . virtaddr and addr < seg_ . virtaddr + seg_ . virtsize } seg . encoded . ptr = addr - seg . virtaddr seg end end
return the segment containing address, set seg.encoded.ptr to the correct offset
return the segment containing address set seg . encoded . ptr to the correct offset
addr