Method: Rex::Struct2::CStruct.typedef

Defined in:
lib/rex/struct2/c_struct.rb

.typedef(*args) ⇒ Object

CStruct.typedef(name, factory, … )



70
71
72
73
74
75
76
# File 'lib/rex/struct2/c_struct.rb', line 70

def CStruct.typedef(*args)
  while args.length >= 2
    name    = args.shift
    factory = args.shift
    @@dt_table[name] = factory
  end
end