class FFI::Struct

Public Class Methods

read_list(first_address) { |instance| ... } click to toggle source
# 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