node/lib/metasm/metasm/decode.rb
# reads len bytes from self.data, advances ptr
# bytes from rawsize to virtsize are returned as zeroes
# ignores self.relocations
reads len bytes from self.data, advances ptr
bytes from rawsize to virtsize are returned as zeroes
ignores self.relocations
reads len bytes from self . data advances ptr bytes from rawsize to virtsize are returned as zeroes ignores self . relocations
def read(len=@virtsize-@ptr)
		vlen = len
		vlen = @virtsize-@ptr if len > @virtsize-@ptr
		str = (@ptr < @data.length) ? @data[@ptr, vlen] : ''
		str = str.to_str.ljust(vlen, "\0") if str.length < vlen
		@ptr += len
		str
	end
def read ( len = @virtsize - @ptr ) vlen = len vlen = @virtsize - @ptr if len > @virtsize - @ptr str = ( @ptr < @data . length ) ? @data [ @ptr , vlen ] : '' str = str . to_str . ljust ( vlen , "\0" ) if str . length < vlen @ptr += len str end
reads len bytes from self.data, advances ptr
bytes from rawsize to virtsize are returned as zeroes
ignores self.relocations
reads len bytes from self . data advances ptr bytes from rawsize to virtsize are returned as zeroes ignores self . relocations
len