dlwrap

Fiddle.dlwrap(val) Class Public methods Returns a memory pointer of a function's hexadecimal address location val Example: lib = Fiddle.dlopen('/lib64/libc-2.15.so') => #<Fiddle::Handle:0x00000001342460> Fiddle.dlwrap(lib['strcpy'].to_s(16)) => 25522520

free

Fiddle.free(addr) Class Public methods Free the memory at address addr

last_error

last_error() Class Public methods Returns the last Error of the current executing Thread or nil if none

last_error=

last_error=(error) Class Public methods Sets the last Error of the current executing Thread to error

malloc

Fiddle.malloc(size) Class Public methods Allocate size bytes of memory and return the integer memory address for the allocated memory.

realloc

Fiddle.realloc(addr, size) Class Public methods Change the size of the memory allocated at the memory location addr to size bytes. Returns the memory address of the reallocated memory, which may be different than the address passed in.

win32_last_error

win32_last_error() Class Public methods Returns the last win32 Error of the current executing Thread or nil if none

win32_last_error=

win32_last_error=(error) Class Public methods Sets the last win32 Error of the current executing Thread to error

new

File::Stat.new(file_name) â stat Class Public methods Create a File::Stat object for the given file name (raising an exception if the file doesn't exist).

&lt;=&gt;

stat other_stat â -1, 0, 1, nil Instance Public methods Compares File::Stat objects by comparing their respective modification times. nil is returned if the two values are incomparable. f1 = File.new("f1", "w") sleep 1 f2 = File.new("f2", "w") f1.stat <=> f2.stat #=> -1