Searched defs:bufsize (Results 1 - 25 of 30) sorted by relevance

12

/openjdk7/jdk/test/java/io/StringWriter/
H A DNegativeBufferSize.java48 MyStringWriter(int bufsize){ argument
49 super(bufsize);
/openjdk7/jdk/src/share/classes/com/sun/jndi/ldap/
H A DBerDecoder.java43 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 DBer.java43 protected int bufsize; field in class:Ber
H A DBerEncoder.java56 * 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 DBASE64DecoderStream.java48 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 DBASE64EncoderStream.java48 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 DUUEncoderStream.java47 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 DUUDecoderStream.java51 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 Dvm_version_solaris_sparc.cpp46 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 DBsdNativeDispatcher.c88 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 DASCII_CharStream.java37 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 DASCII_UCodeESC_CharStream.java95 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 DJavaCharStream.java110 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 DUCode_UCodeESC_CharStream.java109 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 DSimpleCharStream.java37 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 DperfMemory_bsd.cpp246 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 DperfMemory_linux.cpp246 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 DperfMemory_solaris.cpp248 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 DNetworkInterface_winXP.c73 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 Dawt_DataTransferer.cpp284 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 Dpngerror.c138 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 Djava_md_common.c32 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 Dhsdis.c86 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 Djava_md.c473 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 Dzip_util.c929 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;

Completed in 111 milliseconds

12