This method has almost same arguements and return types as IO#read. The only difference is this method needs parameter addr (which will be passed to paramter from in IO#read).
The address start to read. When String is given, it will be safe-evaluated. You can use variables such as ‘heap’/‘stack’/‘libc’ in this parameter. See examples.
# File 'lib/memory_io/process.rb', line 106defread(addr,num_elements,**options)mem_io(:read){|io|io.read(num_elements,from:MemoryIO::Util.safe_eval(addr,bases),**options)}end