class FFI::Pointer

def read_string(len=nil)

Returns:
  • (String) -

Parameters:
  • len (nil, Numeric) -- length of string to return
def read_string(len=nil)
  if len
    get_bytes(0, len)
  else
    get_string(0)
  end
end