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, #initialize, #initialize_copy, layout, #layout, #layout=, members, #members, #null?, #offset_of, offset_of, offsets, #offsets, #order, out, #pointer, #pointer=, ptr, #size, size, size=, #to_ptr, val, #values

Constructor Details

This class inherits a constructor from FFI::Struct

Class Method Details

+ (Object) builder



26
27
28
29
30
# File 'lib/ffi/union.rb', line 26

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