Method: Fiddle::CUnionEntity#set_ctypes

Defined in:
lib/fiddle/struct.rb

#set_ctypes(types) ⇒ Object

Calculate the necessary offset and for each union member with the given types



554
555
556
557
558
# File 'lib/fiddle/struct.rb', line 554

def set_ctypes(types)
  @ctypes = types
  @offset = Array.new(types.length, 0)
  @size   = self.class.size types
end