Lines Matching refs:varname
408 const char* varname = var.name().c_str(); in getVarEncodingSizeExpression() local
411 e->name().c_str(), varname); in getVarEncodingSizeExpression()
414 snprintf(buff, bufflen, "((%s != NULL) ? %s : 0)", varname, lenExpr); in getVarEncodingSizeExpression()
445 const char* varname = var.name().c_str(); in writeVarEncodingExpression() local
450 …f(fp, "\t*(uint64_t *)(ptr) = ctx->lockAndWriteDma(%s, __size_%s); ptr += 8;\n", varname, varname); in writeVarEncodingExpression()
452 fprintf(fp, "\t*(unsigned int *)(ptr) = __size_%s; ptr += 4;\n", varname); in writeVarEncodingExpression()
457 fprintf(fp, "\tif (%s != NULL) ", varname); in writeVarEncodingExpression()
466 varname, varname); in writeVarEncodingExpression()
469 fprintf(fp, "ptr += __size_%s;\n", varname); in writeVarEncodingExpression()
476 varname, in writeVarEncodingExpression()
486 const char* varname = var.name().c_str(); in writeVarLargeEncodingExpression() local
488 fprintf(fp, "\tstream->writeFully(&__size_%s,4);\n", varname); in writeVarLargeEncodingExpression()
489 fprintf(fp, "\tif (useChecksum) checksumCalculator->addBuffer(&__size_%s,4);\n", varname); in writeVarLargeEncodingExpression()
491 fprintf(fp, "\tif (%s != NULL) {\n", varname); in writeVarLargeEncodingExpression()
496 fprintf(fp, "\t\tstream->writeFully(%s, __size_%s);\n", varname, varname); in writeVarLargeEncodingExpression()
497 …intf(fp, "\t\tif (useChecksum) checksumCalculator->addBuffer(%s, __size_%s);\n", varname, varname); in writeVarLargeEncodingExpression()
597 const char* varname = var.name().c_str(); in genEncoderImpl() local
598 fprintf(fp, "\tconst unsigned int __size_%s = ", varname); in genEncoderImpl()
765 const char* varname = evars[j].name().c_str(); in genEncoderImpl() local
778 fprintf(fp, "\tif (%s != NULL) {\n",varname); in genEncoderImpl()
786 indent, varname, varname); in genEncoderImpl()
789 indent, varname, varname); in genEncoderImpl()