In Files
- fiddle/lib/fiddle/import.rb
Class/Module Index
- Fiddle
- Fiddle::BasicTypes
- Fiddle::CParser
- Fiddle::CStruct
- Fiddle::CStructBuilder
- Fiddle::CStructEntity
- Fiddle::CUnion
- Fiddle::CUnionEntity
- Fiddle::Closure
- Fiddle::Closure::BlockCaller
- Fiddle::CompositeHandler
- Fiddle::DLError
- Fiddle::Function
- Fiddle::Handle
- Fiddle::Importer
- Fiddle::Pointer
- Fiddle::Win32Types
Fiddle::CompositeHandler
Used internally by Fiddle::Importer
Public Class Methods
new(handlers)
Create a new handler with the open handlers
Used internally by Fiddle::Importer#dlload
# File fiddle/lib/fiddle/import.rb, line 13 def initialize(handlers) @handlers = handlers end
Public Instance Methods
handlers()
Array of the currently loaded libraries.
# File fiddle/lib/fiddle/import.rb, line 18 def handlers() @handlers end
sym(symbol)
Returns the address as an Integer from any handlers with the function named
symbol
.
Raises a DLError if the handle is closed.
# File fiddle/lib/fiddle/import.rb, line 26 def sym(symbol) @handlers.each{|handle| if( handle ) begin addr = handle.sym(symbol) return addr rescue DLError end end } return nil end