method

size

v1_9_3_392 - Show latest stable - Class: DL::CUnionEntity
size(types)
public

No documentation available.

# File ext/dl/lib/dl/struct.rb, line 180
    def CUnionEntity.size(types)
      size   = 0
      types.each_with_index{|t,i|
        if( t.is_a?(Array) )
          tsize = PackInfo::SIZE_MAP[t[0]] * t[1]
        else
          tsize = PackInfo::SIZE_MAP[t]
        end
        if( tsize > size )
          size = tsize
        end
      }
    end