Parent

Methods

FFI::StructLayout::Mapped

Public Class Methods

new(name, offset, type, orig_field) click to toggle source
# File lib/ffi/struct.rb, line 74
def initialize(name, offset, type, orig_field)
  super(name, offset, type)
  @orig_field = orig_field
end

Public Instance Methods

get(ptr) click to toggle source
# File lib/ffi/struct.rb, line 79
def get(ptr)
  type.from_native(@orig_field.get(ptr), nil)
end
put(ptr, value) click to toggle source
# File lib/ffi/struct.rb, line 83
def put(ptr, value)
  @orig_field.put(ptr, type.to_native(value, nil))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.