A C union wrapper

Class Methods

Allocates a C union the types provided.

When the instance is garbage collected, the C function func is called.

Returns the size needed for the union with the given types.

Fiddle::CUnionEntity.size(
  [ Fiddle::TYPE_DOUBLE,
    Fiddle::TYPE_INT,
    Fiddle::TYPE_CHAR,
    Fiddle::TYPE_VOIDP ]) #=> 8
Instance Methods

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