class FFI::Struct

def hash_layout(builder, spec)

Returns:
  • (builder) -

Parameters:
  • spec (Hash) --
  • builder (StructLayoutBuilder) --
def hash_layout(builder, spec)
  spec[0].each do |name, type|
    builder.add name, find_field_type(type), nil
  end
end