original_docstring: Writes the size computation code for the immediate version of a cmd.
docstring: 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 .
code: def WriteImmediateCmdComputeSize(self, func, file):
      """Writes the size computation code for the immediate version of a cmd."""
      file.Write("  static uint32_t ComputeSize(uint32_t size_in_bytes) {\n")
      file.Write("    return static_cast<uint32_t>(\n")
      file.Write("        sizeof(ValueType) +  // NOLINT\n")
      file.Write("        RoundSizeToMultipleOfEntries(size_in_bytes));\n")
      file.Write("  }\n")
      file.Write("\n")
code_tokens: def WriteImmediateCmdComputeSize ( self , func , file ) : file . Write ( "  static uint32_t ComputeSize(uint32_t size_in_bytes) {\n" ) file . Write ( "    return static_cast<uint32_t>(\n" ) file . Write ( "        sizeof(ValueType) +  // NOLINT\n" ) file . Write ( "        RoundSizeToMultipleOfEntries(size_in_bytes));\n" ) file . Write ( "  }\n" ) file . Write ( "\n" )
short_docstring: Writes the size computation code for the immediate version of a cmd.
short_docstring_tokens: Writes the size computation code for the immediate version of a cmd .
comment: """Writes the size computation code for the immediate version of a cmd."""