dlunwrap

Fiddle.dlunwrap(addr)
Class Public methods

Returns the hexadecimal representation of a memory pointer address addr

Example:

lib = Fiddle.dlopen('/lib64/libc-2.15.so')
=> #<Fiddle::Handle:0x00000001342460>

lib['strcpy'].to_s(16)
=> "7f59de6dd240"

Fiddle.dlunwrap(Fiddle.dlwrap(lib['strcpy'].to_s(16)))
=> "7f59de6dd240"
doc_ruby_on_rails
2015-04-06 04:28:26
Comments
Leave a Comment

Please login to continue.