Method: CTypes::Union::Builder#initialize
- Defined in:
- lib/ctypes/union/builder.rb
#initialize(type_lookup: CTypes.type_lookup) ⇒ Builder
Returns a new instance of Builder.
60 61 62 63 64 65 66 67 |
# File 'lib/ctypes/union/builder.rb', line 60 def initialize(type_lookup: CTypes.type_lookup) @type_lookup = type_lookup @fields = [] @field_names = Set.new @schema = [] @size = 0 @fixed_size = true end |