Class: FFI::Union

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

Class Method Summary collapse

Methods inherited from Struct

#align, #alignment, alignment, array_layout, auto_ptr, by_ref, by_value, #clear, hash_layout, 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