node/lib/metasm/metasm/exe_format/elf_decode.rb
# decode an ULEB128 (dwarf2): read bytes while high bit is set, littleendian
decode an ULEB128 (dwarf2): read bytes while high bit is set, littleendian
decode an ULEB128 ( dwarf2 ) : read bytes while high bit is set littleendian
def decode_leb(ed = @encoded)
		v = s = 0
		loop {
			b = ed.read(1).unpack('C').first.to_i
			v |= (b & 0x7f) << s
			s += 7
			break v if (b&0x80) == 0
		}
	end
def decode_leb ( ed = @encoded ) v = s = 0 loop { b = ed . read ( 1 ) . unpack ( 'C' ) . first . to_i v |= ( b & 0x7f ) << s s += 7 break v if ( b & 0x80 ) == 0 } end
decode an ULEB128 (dwarf2): read bytes while high bit is set, littleendian
decode an ULEB128 ( dwarf2 ) : read bytes while high bit is set littleendian
ed