/openjdk7/jdk/test/java/io/StringWriter/ |
H A D | NegativeBufferSize.java | 48 MyStringWriter(int bufsize){ argument 49 super(bufsize);
|
/openjdk7/jdk/src/share/classes/com/sun/jndi/ldap/ |
H A D | BerDecoder.java | 43 public BerDecoder(byte buf[], int offset, int bufsize) { argument 46 this.bufsize = bufsize; 89 if (bufsize - offset < lengthbyte) { 126 if (offset + i > bufsize || offset + i < 0) { 137 if (bufsize - offset < 1) { 149 if (bufsize - offset < 1) { 198 } else if (len > bufsize - offset) { 250 if (len > bufsize - offset) { 311 if (len > bufsize [all...] |
H A D | Ber.java | 43 protected int bufsize; field in class:Ber
|
H A D | BerEncoder.java | 56 * Specify the initial bufsize. Buffer will be expanded as needed. 57 * @param bufsize The number of bytes for the buffer. 59 public BerEncoder(int bufsize) { argument 60 buf = new byte[bufsize]; 61 this.bufsize = bufsize; 416 if (bufsize - offset < len) { 417 int newsize = bufsize * BUF_GROWTH_FACTOR; 426 bufsize = newsize;
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/ |
H A D | BASE64DecoderStream.java | 48 private int bufsize = 0; // size of the cache field in class:BASE64DecoderStream 74 if (index >= bufsize) { 76 if (bufsize == 0) // buffer is empty 128 return ((in.available() * 3)/4 + (bufsize-index)); 158 bufsize = 0; 180 buffer[bufsize++] = (byte)(((a << 2) & 0xfc) | ((b >>> 4) & 3)); 187 buffer[bufsize++] = (byte)(((a << 4) & 0xf0) | ((b >>> 2) & 0xf)); 194 buffer[bufsize++] = (byte)(((a << 6) & 0xc0) | (b & 0x3f));
|
H A D | BASE64EncoderStream.java | 48 private int bufsize = 0; // size of the cache field in class:BASE64EncoderStream 103 buffer[bufsize++] = (byte)c; 104 if (bufsize == 3) { // Encoding unit = 3 bytes 106 bufsize = 0; 116 if (bufsize > 0) { // If there's unencoded characters in the buffer .. 118 bufsize = 0; 154 if (bufsize == 1) { 162 } else if (bufsize == 2) {
|
H A D | UUEncoderStream.java | 47 private int bufsize = 0; // size of the cache field in class:UUEncoderStream 107 buffer[bufsize++] = (byte)c; 108 if (bufsize == 45) { 111 bufsize = 0; 116 if (bufsize > 0) { // If there's unencoded characters in the buffer 156 * If bufsize if not a multiple of 3, the remaining bytes are filled 166 out.write((bufsize & 0x3f) + ' '); 168 while (i < bufsize) { 170 if (i < bufsize) { 172 if (i < bufsize) [all...] |
H A D | UUDecoderStream.java | 51 private int bufsize = 0; // size of the cache field in class:UUDecoderStream 82 if (index >= bufsize) { 111 return ((in.available() * 3)/4 + (bufsize-index)); 170 bufsize = 0; 220 while (bufsize < count) { 224 buffer[bufsize++] = (byte)(((a << 2) & 0xfc) | ((b >>> 4) & 3)); 226 if (bufsize < count) { 229 buffer[bufsize++] = 233 if (bufsize < count) { 236 buffer[bufsize [all...] |
/openjdk7/hotspot/src/os_cpu/solaris_sparc/vm/ |
H A D | vm_version_solaris_sparc.cpp | 46 size_t bufsize = sysinfo(si, &tmp, 1); local 49 guarantee(bufsize != -1, "must be supported"); 51 char* buf = (char*) malloc(bufsize); 56 if (sysinfo(si, buf, bufsize) == bufsize) { 130 size_t bufsize = sysinfo(SI_ISALIST, &tmp, 1); local 131 char* buf = (char*) malloc(bufsize); 134 if (sysinfo(SI_ISALIST, buf, bufsize) == bufsize) {
|
/openjdk7/jdk/src/solaris/native/sun/nio/fs/ |
H A D | BsdNativeDispatcher.c | 88 size_t bufsize; local 115 bufsize = nentries * sizeof(struct statfs); 118 iter->buf = malloc(bufsize); 125 nentries = getfsstat(iter->buf, bufsize, MNT_WAIT);
|
/openjdk7/jdk/src/share/classes/com/sun/jmx/snmp/IPAcl/ |
H A D | ASCII_CharStream.java | 37 int bufsize; field in class:ASCII_CharStream 58 char[] newbuffer = new char[bufsize + 2048]; 59 int newbufline[] = new int[bufsize + 2048]; 60 int newbufcolumn[] = new int[bufsize + 2048]; 66 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); 68 bufsize - tokenBegin, bufpos); 71 System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); 72 System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); 75 System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); 76 System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize [all...] |
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/expr/ |
H A D | ASCII_UCodeESC_CharStream.java | 95 int bufsize; field in class:ASCII_UCodeESC_CharStream 117 char[] newbuffer = new char[bufsize + 2048]; 118 int newbufline[] = new int[bufsize + 2048]; 119 int newbufcolumn[] = new int[bufsize + 2048]; 125 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); 127 bufsize - tokenBegin, bufpos); 130 System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); 131 System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); 134 System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); 135 System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/rngom/parse/compact/ |
H A D | JavaCharStream.java | 110 int bufsize; field in class:JavaCharStream 136 char[] newbuffer = new char[bufsize + 2048]; 137 int newbufline[] = new int[bufsize + 2048]; 138 int newbufcolumn[] = new int[bufsize + 2048]; 144 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); 145 System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos); 148 System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); 149 System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); 152 System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); 153 System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize [all...] |
H A D | UCode_UCodeESC_CharStream.java | 109 int bufsize; field in class:UCode_UCodeESC_CharStream 130 char[] newbuffer = new char[bufsize + 2048]; 131 int newbufline[] = new int[bufsize + 2048]; 132 int newbufcolumn[] = new int[bufsize + 2048]; 135 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); 137 bufsize - tokenBegin, bufpos); 140 System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); 141 System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); 144 System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); 145 System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/xsom/impl/scd/ |
H A D | SimpleCharStream.java | 37 int bufsize; field in class:SimpleCharStream 63 char[] newbuffer = new char[bufsize + 2048]; 64 int newbufline[] = new int[bufsize + 2048]; 65 int newbufcolumn[] = new int[bufsize + 2048]; 71 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); 73 bufsize - tokenBegin, bufpos); 76 System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); 77 System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); 80 System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); 81 System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize [all...] |
/openjdk7/hotspot/src/os/bsd/vm/ |
H A D | perfMemory_bsd.cpp | 246 long bufsize = sysconf(_SC_GETPW_R_SIZE_MAX); local 247 if (bufsize == -1) 248 bufsize = 1024; 250 char* pwbuf = NEW_C_HEAP_ARRAY(char, bufsize, mtInternal); 254 int result = getpwuid_r(uid, &pwent, pwbuf, (size_t)bufsize, &p);
|
/openjdk7/hotspot/src/os/linux/vm/ |
H A D | perfMemory_linux.cpp | 246 long bufsize = sysconf(_SC_GETPW_R_SIZE_MAX); local 247 if (bufsize == -1) 248 bufsize = 1024; 250 char* pwbuf = NEW_C_HEAP_ARRAY(char, bufsize, mtInternal); 254 int result = getpwuid_r(uid, &pwent, pwbuf, (size_t)bufsize, &p);
|
/openjdk7/hotspot/src/os/solaris/vm/ |
H A D | perfMemory_solaris.cpp | 248 long bufsize = sysconf(_SC_GETPW_R_SIZE_MAX); local 249 if (bufsize == -1) 250 bufsize = 1024; 252 char* pwbuf = NEW_C_HEAP_ARRAY(char, bufsize, mtInternal); 256 int result = getpwuid_r(uid, &pwent, pwbuf, (size_t)bufsize, &p); 258 struct passwd* p = getpwuid_r(uid, &pwent, pwbuf, (int)bufsize);
|
/openjdk7/jdk/src/windows/native/java/net/ |
H A D | NetworkInterface_winXP.c | 73 static int bufsize = 1024; variable 84 adapterInfo = (IP_ADAPTER_ADDRESSES *)malloc (bufsize); 88 len = bufsize; 98 bufsize = len; 120 adapterInfo = (IP_ADAPTER_ADDRESSES *)malloc (bufsize); 125 len = bufsize; 136 bufsize = len;
|
/openjdk7/jdk/src/windows/native/sun/windows/ |
H A D | awt_DataTransferer.cpp | 284 UINT bufsize = 512; // in characters, not in bytes local 285 buffer = (LPTSTR)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, bufsize, sizeof(TCHAR)); 289 if (size > bufsize) { 290 bufsize = size; 291 buffer = (LPTSTR)SAFE_SIZE_ARRAY_REALLOC(safe_Realloc, buffer, bufsize, sizeof(TCHAR)); 293 ::DragQueryFile(hdrop, i, buffer, bufsize);
|
/openjdk7/jdk/src/share/native/sun/awt/libpng/ |
H A D | pngerror.c | 138 png_safecat(png_charp buffer, size_t bufsize, size_t pos, argument 141 if (buffer != NULL && pos < bufsize) 144 while (*string != '\0' && pos < bufsize-1)
|
/openjdk7/jdk/src/solaris/bin/ |
H A D | java_md_common.c | 32 GetApplicationHome(char *buf, jint bufsize) argument 36 JLI_Snprintf(buf, bufsize, "%s", execname); 37 buf[bufsize-1] = '\0';
|
/openjdk7/hotspot/src/share/tools/hsdis/ |
H A D | hsdis.c | 86 char* buf, size_t bufsize); 157 char* buf, size_t bufsize) { 163 || (strlen(close) + 3*20 > bufsize)) 155 format_insn_close(const char* close, disassemble_info* dinfo, char* buf, size_t bufsize) argument
|
/openjdk7/hotspot/src/os/windows/launcher/ |
H A D | java_md.c | 473 GetApplicationHome(char *buf, jint bufsize) argument 477 GetModuleFileName(0, buf, bufsize); 495 snprintf(buf, bufsize, "%s", getenv("ALT_JAVA_HOME")); 529 if (fgets(buf, bufsize, fp) == NULL) { 575 GetStringFromRegistry(HKEY key, const char *name, char *buf, jint bufsize) argument 581 && (size < (unsigned int)bufsize)) { 590 GetPublicJREHome(char *buf, jint bufsize) argument 631 if (!GetStringFromRegistry(subkey, "JavaHome", buf, bufsize)) {
|
/openjdk7/jdk/src/share/native/java/util/zip/ |
H A D | zip_util.c | 929 readCENHeader(jzfile *zip, jlong cenpos, jint bufsize) argument 934 if (bufsize > zip->len - cenpos) 935 bufsize = (jint)(zip->len - cenpos); 936 if ((cen = malloc(bufsize)) == NULL) goto Catch; 937 if (readFullyAt(zfd, cen, bufsize, cenpos) == -1) goto Catch; 939 if (censize <= bufsize) return cen; 941 if (readFully(zfd, cen+bufsize, censize-bufsize) == -1) goto Catch;
|