Method: BOAST::CustomType#initialize

Defined in:
lib/BOAST/DataTypes.rb

#initialize(hash = {}) ⇒ CustomType



305
306
307
308
309
310
311
312
# File 'lib/BOAST/DataTypes.rb', line 305

def initialize(hash={})
  @name = hash[:type_name]
  @size = hash[:size]
  @size = 0 if @size.nil?
  @vector_length = hash[:vector_length]
  @vector_length = 1 if @vector_length.nil?
  @total_size = @vector_length*@size
end