Searched refs:maxlen (Results 1 - 22 of 22) sorted by relevance

/openjdk7/jdk/src/share/native/com/sun/java/util/jar/pack/
H A Dbytes.cpp136 size_t maxlen = nlen; local
137 if (maxlen < 128) maxlen = 128;
138 if (maxlen < allocated*2) maxlen = allocated*2;
142 b.malloc(maxlen);
143 if (b.len == maxlen)
146 b.realloc(maxlen);
149 if (allocated != maxlen) {
H A Dmain.cpp85 void* buf, jlong minlen, jlong maxlen) {
86 assert(minlen <= maxlen); // don't talk nonsense
90 // read available input, up to buf.length or maxlen
92 if (readlen > (maxlen - numread))
93 readlen = (int)(maxlen - numread);
112 assert(numread <= maxlen);
115 // (int)minlen, (int)maxlen, (int)numread);
84 read_input_via_stdio(unpacker* u, void* buf, jlong minlen, jlong maxlen) argument
H A Djni.cpp60 void* buf, jlong minlen, jlong maxlen);
126 void* buf, jlong minlen, jlong maxlen) {
128 jobject pbuf = env->NewDirectByteBuffer(buf, maxlen);
125 read_input_via_jni(unpacker* self, void* buf, jlong minlen, jlong maxlen) argument
H A Dzip.cpp431 void* buf, jlong minlen, jlong maxlen) {
432 assert(minlen <= maxlen); // don't talk nonsense
442 if (readlen > (maxlen - numread))
443 readlen = (int)(maxlen - numread);
458 assert(numread <= maxlen);
482 // (int)minlen, (int)maxlen, (int)numread);
430 read_input_via_gzip(unpacker* u, void* buf, jlong minlen, jlong maxlen) argument
H A Dunpack.h202 typedef jlong (*read_input_fn_t)(unpacker* self, void* buf, jlong minlen, jlong maxlen);
H A Dunpack.cpp1083 int maxlen = 0; local
1101 if (maxlen < prefix + suffix) {
1102 maxlen = prefix + suffix;
1138 bigbuf.malloc(maxlen * 3 + 1); // max Utf8 length, plus slop for null
/openjdk7/jdk/src/share/demo/jvmti/minst/
H A Dminst.c317 int maxlen; local
319 maxlen = MAX_METHOD_NAME_LENGTH;
321 gdata->include = (char*)calloc(maxlen+1, 1);
328 realloc((void*)gdata->include, used+maxlen+1);
334 next = get_token(next, ",=", gdata->include+used, maxlen);
341 int maxlen; local
343 maxlen = MAX_METHOD_NAME_LENGTH;
345 gdata->exclude = (char*)calloc(maxlen+1, 1);
352 realloc((void*)gdata->exclude, used+maxlen+1);
358 next = get_token(next, ",=", gdata->exclude+used, maxlen);
[all...]
/openjdk7/jdk/src/share/classes/com/sun/java/util/jar/pack/
H A DNativeUnpack.java114 long maxlen = pbuf.capacity() - pbuf.position();
115 assert(minlen <= maxlen); // don't talk nonsense
120 // read available input, up to buf.length or maxlen
122 if (readlen > (maxlen - numread))
123 readlen = (int)(maxlen - numread);
127 assert(numread <= maxlen);
132 Utils.log.fine("readInputFn("+minlen+","+maxlen+") => "+numread+" steps="+steps);
133 if (maxlen > 100) {
134 _estByteLimit = _byteCount + maxlen;
/openjdk7/jdk/src/windows/native/sun/windows/
H A Dawt_TextArea.h56 static size_t CountNewLines(JNIEnv *env, jstring jStr, size_t maxlen);
57 static size_t GetALength(JNIEnv* env, jstring jStr, size_t maxlen);
H A Dawt_TextArea.cpp99 size_t AwtTextArea::CountNewLines(JNIEnv *env, jstring jStr, size_t maxlen) argument
115 for (size_t i = 0; i < maxlen && i < length - 1; i++) {
H A Dawt_PrintJob.cpp1915 int maxlen = static_cast<int>(sizeof(lf.lfFaceName)) - 1; local
1916 // maxlen is int due to cbMultiByte parameter is int
1922 maxlen, // max len
/openjdk7/jdk/src/share/demo/jvmti/mtrace/
H A Dmtrace.c153 get_thread_name(jvmtiEnv *jvmti, jthread thread, char *tname, int maxlen) argument
174 if ( len < maxlen ) {
641 int maxlen; local
643 maxlen = MAX_METHOD_NAME_LENGTH;
645 gdata->include = (char*)calloc(maxlen+1, 1);
652 realloc((void*)gdata->include, used+maxlen+1);
658 next = get_token(next, ",=", gdata->include+used, maxlen);
665 int maxlen; local
667 maxlen = MAX_METHOD_NAME_LENGTH;
669 gdata->exclude = (char*)calloc(maxlen
[all...]
/openjdk7/jdk/test/sun/nio/cs/
H A DTestStringCodingUTF8.java65 int maxlen = 1000;
68 int off = rnd.nextInt(bmpsupp.length - maxlen);
69 int len = rnd.nextInt(maxlen);
75 byte[] ba = new byte[rnd.nextInt(maxlen)];
/openjdk7/jdk/src/share/back/
H A Dtransport.c62 int maxlen; local
66 maxlen = len+len/2+2; /* Should allow for plenty of room */
67 utf8msg = (jbyte*)jvmtiAllocate(maxlen+1);
69 msg, len, utf8msg, maxlen); local
70 utf8msg[maxlen] = 0;
/openjdk7/jdk/src/solaris/native/java/io/
H A DUnixFileSystem_md.c285 int len, maxlen; local
302 maxlen = 16;
303 rv = (*env)->NewObjectArray(env, maxlen, JNU_ClassString(env), NULL);
311 if (len == maxlen) {
313 rv = (*env)->NewObjectArray(env, maxlen <<= 1,
/openjdk7/jdk/src/windows/native/java/io/
H A DWin32FileSystem_md.c339 int len, maxlen; local
349 maxlen = 16;
350 rv = (*env)->NewObjectArray(env, maxlen, JNU_ClassString(env), NULL);
358 if (len == maxlen) {
360 rv = (*env)->NewObjectArray(env, maxlen <<= 1,
H A DWinNTFileSystem_md.c615 int len, maxlen; local
674 maxlen = 16;
675 rv = (*env)->NewObjectArray(env, maxlen, JNU_ClassString(env), NULL);
687 if (len == maxlen) {
689 rv = (*env)->NewObjectArray(env, maxlen <<= 1,
/openjdk7/jdk/src/share/native/sun/security/ec/impl/
H A Dmpi.h348 mp_err mp_to_unsigned_octets(const mp_int *mp, unsigned char *str, mp_size maxlen);
349 mp_err mp_to_signed_octets(const mp_int *mp, unsigned char *str, mp_size maxlen);
H A Dmpi.c4754 mp_to_unsigned_octets(const mp_int *mp, unsigned char *str, mp_size maxlen) argument
4762 ARGCHK(bytes <= maxlen, MP_BADARG);
4786 mp_to_signed_octets(const mp_int *mp, unsigned char *str, mp_size maxlen) argument
4794 ARGCHK(bytes <= maxlen, MP_BADARG);
4808 ARGCHK(bytes + 1 <= maxlen, MP_BADARG);
4809 if (bytes + 1 > maxlen)
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/report/
H A DJ2DAnalyzer.java241 int maxlen = 60;
243 (int) Math.round(maxlen * score / maxscore);
247 int len = (int) Math.round(maxlen * s / maxscore);
/openjdk7/hotspot/src/share/vm/adlc/
H A Doutput_h.cpp132 size_t maxlen = 0; local
137 if (len > maxlen) maxlen = len;
147 for (size_t i = strlen(reg_def->_regname); i < maxlen; i++) fprintf(fp_hpp, " ");
/openjdk7/jdk/src/solaris/native/java/net/
H A DNetworkInterface.c1576 msg.maxlen = sizeof (buf);

Completed in 594 milliseconds