Flowdock
method

set_ctypes

Importance_0
v1_9_3_392 - Show latest stable - 0 notes - Class: CUnionEntity
set_ctypes(types) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File ext/dl/lib/dl/struct.rb, line 194
    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
Register or log in to add new notes.