node/lib/metasm/metasm/disassemble_api.rb
# read a zero-terminated wide string from addr
# return nil if no terminal found
read a zero-terminated wide string from addr
return nil if no terminal found
read a zero - terminated wide string from addr return nil if no terminal found
def decode_wstrz(addr, maxsz=4096)
		if e = get_section_at(addr)
			str = e[0].read(maxsz).to_s
			return if not len = str.unpack('v*').index(0)
			str[0, 2*len]
		end
	end
def decode_wstrz ( addr , maxsz = 4096 ) if e = get_section_at ( addr ) str = e [ 0 ] . read ( maxsz ) . to_s return if not len = str . unpack ( 'v*' ) . index ( 0 ) str [ 0 , 2 * len ] end end
read a zero-terminated wide string from addr
return nil if no terminal found
read a zero - terminated wide string from addr return nil if no terminal found
addr
maxsz