parameters: (self, func, file)
docstring: Overrriden from TypeHandler.
docstring_summary: Overrriden from TypeHandler.
docstring_tokens: Overrriden from TypeHandler .
function: def WriteImmediateCmdInit(self, func, file):
      """Overrriden from TypeHandler."""
      last_arg = func.GetLastOriginalArg()
      file.Write("  void Init(%s, %s _%s) {\n" %
                 (func.MakeTypedCmdArgString("_"),
                  last_arg.type, last_arg.name))
      file.Write("    SetHeader(_n);\n")
      args = func.GetCmdArgs()
      for arg in args:
        file.Write("    %s = _%s;\n" % (arg.name, arg.name))
      file.Write("    memcpy(ImmediateDataAddress(this),\n")
      file.Write("           _%s, ComputeDataSize(_n));\n" % last_arg.name)
      file.Write("  }\n")
      file.Write("\n")
function_tokens: def WriteImmediateCmdInit ( self , func , file ) : last_arg = func . GetLastOriginalArg ( ) file . Write ( "  void Init(%s, %s _%s) {\n" % ( func . MakeTypedCmdArgString ( "_" ) , last_arg . type , last_arg . name ) ) file . Write ( "    SetHeader(_n);\n" ) args = func . GetCmdArgs ( ) for arg in args : file . Write ( "    %s = _%s;\n" % ( arg . name , arg . name ) ) file . Write ( "    memcpy(ImmediateDataAddress(this),\n" ) file . Write ( "           _%s, ComputeDataSize(_n));\n" % last_arg . name ) file . Write ( "  }\n" ) file . Write ( "\n" )