parameters: (self, func, f)
docstring: Writes the size computation code for the immediate version of a cmd.
docstring_summary: Writes the size computation code for the immediate version of a cmd.
docstring_tokens: Writes the size computation code for the immediate version of a cmd .
function: def WriteImmediateCmdComputeSize(self, func, f):
      """Writes the size computation code for the immediate version of a cmd."""
      f.write("  static uint32_t ComputeSize(uint32_t size_in_bytes) {\n")
      f.write("    return static_cast<uint32_t>(\n")
      f.write("        sizeof(ValueType) +  // NOLINT\n")
      f.write("        RoundSizeToMultipleOfEntries(size_in_bytes));\n")
      f.write("  }\n")
      f.write("\n")
function_tokens: def WriteImmediateCmdComputeSize ( self , func , f ) : f . write ( "  static uint32_t ComputeSize(uint32_t size_in_bytes) {\n" ) f . write ( "    return static_cast<uint32_t>(\n" ) f . write ( "        sizeof(ValueType) +  // NOLINT\n" ) f . write ( "        RoundSizeToMultipleOfEntries(size_in_bytes));\n" ) f . write ( "  }\n" ) f . write ( "\n" )