class FFI::StructLayout

def offset_of(field_name)

Returns:
  • (Integer) -
def offset_of(field_name)
  self[field_name].offset
end

def offsets

Returns:
  • (Array) - Array
def offsets
  members.map { |m| [ m, self[m].offset ] }
end