module RubyVM::RJIT::CType::Struct

Public Class Methods

new(name, sizeof, **members) click to toggle source

@param name [String] @param members [Hash{ Symbol => [Integer, RubyVM::RJIT::CType::*] }]

# File ruby_vm/rjit/c_type.rb, line 10
def self.new(name, sizeof, **members)
  name = members.keys.join('_') if name.empty?
  CPointer.with_class_name('Struct', name) do
    CPointer::Struct.define(sizeof, members)
  end
end