parameters: (self, value, size)
return_statement: return
docstring: the ID for the struct member_type must be supplied
          the member_type can either by primitive :or a structure. If it is a struct :or
          string, then size is required
docstring_summary: the ID for the struct member_type must be supplied
          the member_type can either by primitive :or a structure. If it is a struct :or
          string, then size is required
docstring_tokens: the ID for the struct member_type must be supplied the member_type can either by primitive : or a structure . If it is a struct : or string then size is required
function: def set_type(self, value, size):
          '''
          the ID for the struct member_type must be supplied
          the member_type can either by primitive :or a structure. If it is a struct :or
          string, then size is required
          '''
  
          if value == 'vftptr':
              self.__is_vftptr = True
              self.__type = ida_bytes.FF_DWORD
  
          elif value == 'struc':
              self.__type = ida_bytes.FF_STRUCT
  
          elif value == '':
              d = {1: ida_bytes.FF_BYTE,
                   2: ida_bytes.FF_WORD,
                   4: ida_bytes.FF_DWORD}
              self.__type = d.get(size, None)
              if self.__type is None:
                  # XXX: We should really have a marker here so that in apply_member we create a
                  # dummy type of the appropriate size.
                  print("WARNING: Unknown type for size %d" % size)
                  self.__type = ida_bytes.FF_BYTE
          else:
              print("WARNING: Unknown type %s" % value)
              assert(False)
  
          return
function_tokens: def set_type ( self , value , size ) : if value == 'vftptr' : self . __is_vftptr = True self . __type = ida_bytes . FF_DWORD elif value == 'struc' : self . __type = ida_bytes . FF_STRUCT elif value == '' : d = { 1 : ida_bytes . FF_BYTE , 2 : ida_bytes . FF_WORD , 4 : ida_bytes . FF_DWORD } self . __type = d . get ( size , None ) if self . __type is None : # XXX: We should really have a marker here so that in apply_member we create a # dummy type of the appropriate size. print ( "WARNING: Unknown type for size %d" % size ) self . __type = ida_bytes . FF_BYTE else : print ( "WARNING: Unknown type %s" % value ) assert ( False ) return