Class: FFI::Struct

Inherits:
Object
  • Object
show all
Defined in:
lib/facter/resolvers/windows/ffi/ffi.rb

Class Method Summary collapse

Class Method Details

.read_list(first_address) ⇒ Object



57
58
59
60
61
62
63
# File 'lib/facter/resolvers/windows/ffi/ffi.rb', line 57

def self.read_list(first_address)
  instance = new(first_address)
  while instance.to_ptr != Pointer::NULL
    yield(instance)
    instance = new(instance[:Next])
  end
end