size(types)
public
Given types, returns the size needed for the union.
DL::CUnionEntity.size([DL::TYPE_DOUBLE, DL::TYPE_INT, DL::TYPE_CHAR,
DL::TYPE_VOIDP])
=> 8
# File ext/dl/lib/dl/struct.rb, line 222
def CUnionEntity.size(types)
types.map { |type, count = 1|
PackInfo::SIZE_MAP[type] * count
}.max
end