Lines Matching full:cname
351 void emitNativeBoundsChecks(CFunc cfunc, String cname, PrintStream out,
367 if (cname != null && !cname.equals(checks[index + 1])) {
429 void emitSentinelCheck(CFunc cfunc, String cname, PrintStream out,
438 if (cname != null && !cname.equals(checks[index + 1])) {
443 out.println(iii + cname + "_sentinel = false;");
446 out.println(iii + indent + "if (" + cname +
449 cname + "_sentinel = true;");
454 "if (" + cname + "_sentinel == false) {");
458 out.println(iii + indent + "_exceptionMessage = \"" + cname +
480 String cname = checks[index + 1];
481 out.println(indent + "bool " + cname + "_sentinel = false;");
836 String cname = cfunc.getArgName(cIndex);
837 bufferArgNames.add(cname);
985 String cname = cfunc.getArgName(cIndex);
995 decl + " " + cname + "_native = (" +
1024 String cname = cfunc.getArgName(cIndex);
1039 "_" + cname + "Remaining";
1057 String cname = cfunc.getArgName(cIndex);
1059 out.println(indent + "const char* _native" + cname + " = 0;");
1070 String cname = cfunc.getArgName(cIndex);
1075 out.println(indent + "if (!" + cname + ") {");
1079 "_exceptionMessage = \"" + cname + " == null\";");
1083 out.println(indent + "_native" + cname + " = _env->GetStringUTFChars(" + cname + ", 0);");
1096 String cname = cfunc.getArgName(cIndex);
1098 cname + "Offset";
1100 "_" + cname + "Remaining";
1105 out.println(indent + "if (!" + cname + "_ref) {");
1110 "_exceptionMessage = \"" + cname +" == null\";");
1126 cname + "_ref) - " + offset + ";");
1128 emitNativeBoundsChecks(cfunc, cname, out, false,
1133 cname +
1144 cname + " = " + cname + "_base + " + offset + ";");
1146 emitSentinelCheck(cfunc, cname, out, false,
1153 out.println(indent + "if (!" + cname + "_ref) {");
1157 out.println(indent + indent + "_exceptionMessage = \"" + cname +" == null\";");
1172 cname + "_ref) - " + offset + ";");
1173 emitNativeBoundsChecks(cfunc, cname, out, false,
1189 out.println(indent + "if (" + cname + "_buf) {");
1195 cname +
1199 cname + "_buf);");
1201 out.println(iii + indent + "if ( ! " + cname + " ) {");
1206 cname +
1210 cname +
1215 emitNativeBoundsChecks(cfunc, cname, out, true,
1234 String cname = cfunc.getArgName(cIndex);
1236 "_" + cname + "BufferOffset";
1242 out.println(indent + "if (" + cname + "_buf && " + cname +" == NULL) {");
1244 out.println(indent + "if (" + cname +" == NULL) {");
1246 out.println(indent + indent + "char * _" + cname + "Base = (char *)_env->GetPrimitiveArrayCritical(" + array + ", (jboolean *) 0);");
1247 out.println(indent + indent + cname + " = (" +cfunc.getArgType(cIndex).getDeclaration() +") (_" + cname + "Base + " + bufferOffset + ");");
1372 String cname = cfunc.getArgName(cIndex);
1374 out.println(indent + "if (_native" + cname + ") {");
1375 out.println(indent + " _env->ReleaseStringUTFChars(" + cname + ", _native" + cname + ");");