# File dl/lib/dl/struct.rb, line 195 def set_ctypes(types) @ctypes = types @offset = [] @size = 0 types.each_with_index{|t,i| @offset[i] = 0 if( t.is_a?(Array) ) size = SIZE_MAP[t[0]] * t[1] else size = SIZE_MAP[t] end if( size > @size ) @size = size end } end