Class: FFI::Union

Inherits:
Struct show all
Defined in:
lib/ffi/union.rb

Class Method Summary collapse

Methods inherited from Struct

#align, #alignment, alignment, auto_ptr, by_ref, by_value, #clear, in, layout, #members, members, offset_of, #offset_of, offsets, #offsets, out, ptr, size, #size, size=, #to_ptr, val, #values

Class Method Details

.builderObject



37
38
39
40
41
# File 'lib/ffi/union.rb', line 37

def self.builder
  b = StructLayoutBuilder.new
  b.union = true
  b
end