class BinData::DSLMixin::DSLParser
def to_array_params
def to_array_params case fields.length when 0 {} when 1 {:type => fields[0].prototype} else {:type => [:struct, to_struct_params]} end end
def to_array_params case fields.length when 0 {} when 1 {:type => fields[0].prototype} else {:type => [:struct, to_struct_params]} end end