Searched refs:buf (Results 551 - 575 of 1249) sorted by relevance

<<21222324252627282930>>

/openjdk7/jdk/test/java/io/RandomAccessFile/
H A DSetLength.java46 byte[] buf = new byte[max];
47 f.write(buf);
/openjdk7/jdk/test/java/io/Serializable/expectedStackTrace/
H A DExpectedStackTrace.java83 byte[] buf = bos.toByteArray();
86 ByteArrayInputStream bais = new ByteArrayInputStream(buf);
/openjdk7/jdk/test/java/lang/instrument/
H A DTransformerManagementThreadAddTests.java505 StringBuffer buf = new StringBuffer();
510 buf.append(t.toString());
516 buf.append("*");
519 { buf.append(" "); }
522 { buf.append(" "); }
526 buf.append("\n");
529 { buf.append(" "); }
533 System.out.println(buf);
/openjdk7/jdk/test/java/nio/channels/DatagramChannel/
H A DMulticastSendReceiveTests.java66 ByteBuffer buf = ByteBuffer.wrap(msg);
69 dc.send(buf, new InetSocketAddress(group, port));
89 ByteBuffer buf = ByteBuffer.allocateDirect(100);
95 SocketAddress sa = dc.receive(buf);
109 buf.flip();
110 byte[] bytes = new byte[buf.remaining()];
111 buf.get(bytes);
130 buf.rewind();
/openjdk7/jdk/src/share/demo/jvmti/hprof/
H A Dhprof_listener.c135 recv_fully(int f, char *buf, int len) argument
146 res = md_recv(f, buf + nbytes, (len - nbytes), 0);
334 char buf[80]; local
338 (void)md_snprintf(buf, sizeof(buf),
340 buf[sizeof(buf)-1] = 0;
341 HPROF_ERROR(JNI_FALSE, buf);
/openjdk7/jdk/src/share/native/sun/awt/utility/
H A Drect.c36 int BitmapToYXBandedRectangles(int bitsPerPixel, int width, int height, unsigned char * buf, RECT_T * outBuf) argument
53 unsigned char *pSrc = (unsigned char *) buf + j * alignedWidth;
/openjdk7/jdk/src/share/classes/sun/text/normalizer/
H A DUtility.java65 StringBuffer buf = new StringBuffer();
71 buf.append("\\\\"); // That is, "\\"
73 buf.append((char)c);
77 buf.append(four ? "\\u" : "\\U");
78 hex(c, four ? 4 : 8, buf);
81 return buf.toString();
244 StringBuffer buf = new StringBuffer();
245 return appendNumber(buf, ch, 16, width).toString();
/openjdk7/jdk/src/share/classes/sun/util/locale/
H A DLocaleExtensions.java195 StringBuilder buf = new StringBuilder();
203 if (buf.length() > 0) {
204 buf.append(LanguageTag.SEP);
206 buf.append(extension);
210 if (buf.length() > 0) {
211 buf.append(LanguageTag.SEP);
213 buf.append(privuse);
215 return buf.toString();
/openjdk7/jdk/test/java/util/zip/
H A DAvailable.java61 byte[] buf = new byte[1024];
64 while ((n = in.read(buf)) != -1);
H A DFlaterTest.java80 private static void validate(byte[] buf, int offset, int len) throws Exception { argument
82 if (buf[i] != data[offset+i]) {
157 byte[] buf = new byte[len];
158 int inflated = inflater.inflate(buf, 0, len);
159 validate(buf, offset, inflated);
/openjdk7/jdk/src/share/native/java/util/zip/
H A Dzip_util.c144 ZFILE_read(ZFILE zfd, char *buf, jint nbytes) { argument
146 return (int) IO_Read(zfd, buf, nbytes);
156 return read(zfd, buf, nbytes);
185 * Reads len bytes of data into buf.
189 readFully(ZFILE zfd, void *buf, jlong len) { argument
190 char *bp = (char *) buf;
213 * Reads len bytes of data from the specified offset into buf.
217 readFullyAt(ZFILE zfd, void *buf, jlong len, jlong offset) argument
223 return readFully(zfd, buf, len);
289 char buf[ local
307 char buf[READBLOCKSZ]; local
760 char buf[PATH_MAX]; local
1284 ZIP_Read(jzfile *zip, jzentry *entry, jlong pos, void *buf, jint len) argument
1337 InflateFully(jzfile *zip, jzentry *entry, void *buf, char **msg) argument
1418 ZIP_ReadEntry(jzfile *zip, jzentry *entry, unsigned char *buf, char *entryname) argument
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/
H A DCLHSDB.java235 StringBuffer buf = new StringBuffer(message.length());
241 buf.append('\n');
245 buf.append(' ');
249 buf.append(tok);
252 return buf.toString();
/openjdk7/jdk/src/share/classes/javax/management/
H A DMBeanServerPermission.java198 final StringBuilder buf = new StringBuilder();
201 if (buf.length() > 0)
202 buf.append(',');
203 buf.append(names[i]);
206 return buf.toString().intern();
/openjdk7/jdk/src/share/classes/com/sun/tools/hat/internal/model/
H A DJavaObjectArray.java151 ReadBuffer buf = cl.getReadBuffer();
154 int len = buf.getInt(offset);
160 ReadBuffer buf = cl.getReadBuffer();
163 int len = buf.getInt(offset);
168 buf.get(offset + 4 + idSize, res);
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/reflect/
H A DListTransducedAccessorImpl.java94 StringBuilder buf = new StringBuilder();
102 if(buf.length()>0) buf.append(' ');
103 buf.append(xducer.print(item));
109 return buf.toString();
/openjdk7/jdk/src/windows/native/sun/tools/attach/
H A DWindowsAttachProvider.c43 char buf[256]; local
47 bufLen = sizeof(buf) / sizeof(char);
48 actualLen = GetTempPath(bufLen, buf);
50 char* bufP = buf;
59 if (bufP != buf) {
/openjdk7/langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/
H A DDirectoryManager.java296 StringBuffer buf = new StringBuffer();
299 buf.append(pathstr);
300 buf.append(URL_FILE_SEPARATOR);
302 buf.append(filename);
303 return buf.toString();
/openjdk7/langtools/test/tools/javac/6400872/
H A DT6400872.java127 byte[] buf = new byte[(int) f.length()];
130 while (offset < buf.length) {
131 int n = in.read(buf, offset, buf.length - offset);
136 return buf;
/openjdk7/jaxp/src/com/sun/org/apache/xpath/internal/objects/
H A DXString.java1033 char[] buf = new char[len];
1035 this.getChars(0, len, buf, 0);
1042 if (isSpace(buf[s]))
1054 char c = buf[s];
1065 buf[d++] = ' ';
1069 char prevChar = buf[s - 1];
1090 buf[d++] = c;
1095 if (trimTail && 1 <= d && ' ' == buf[d - 1])
1104 if (trimHead && 0 < d && ' ' == buf[0])
1113 return edit ? xsf.newstr(new String(buf, star
[all...]
/openjdk7/jdk/src/share/classes/java/nio/channels/
H A DChannels.java363 private byte buf[] = new byte[0]; field in class:Channels.ReadableByteChannelImpl
379 if (buf.length < bytesToRead)
380 buf = new byte[bytesToRead];
385 bytesRead = in.read(buf, 0, bytesToRead);
393 dst.put(buf, 0, bytesRead);
438 private byte buf[] = new byte[0]; field in class:Channels.WritableByteChannelImpl
453 if (buf.length < bytesToWrite)
454 buf = new byte[bytesToWrite];
455 src.get(buf, 0, bytesToWrite);
458 out.write(buf,
[all...]
/openjdk7/hotspot/src/os/bsd/vm/
H A DattachListener_bsd.cpp101 static int write_fully(int s, char* buf, int len);
250 char buf[max_len]; local
261 RESTARTABLE(read(s, buf+off, left), n);
269 if (buf[off+i] == 0) {
276 if ((strlen(buf) != strlen(ver_str)) ||
277 (atoi(buf) != ATTACH_PROTOCOL_VER)) {
296 ArgumentIterator args(buf, (max_len)-left);
386 int BsdAttachListener::write_fully(int s, char* buf, int len) { argument
388 int n = ::write(s, buf, len);
392 buf
[all...]
/openjdk7/hotspot/src/os/linux/vm/
H A DattachListener_linux.cpp101 static int write_fully(int s, char* buf, int len);
245 char buf[max_len]; local
256 RESTARTABLE(read(s, buf+off, left), n);
264 if (buf[off+i] == 0) {
271 if ((strlen(buf) != strlen(ver_str)) ||
272 (atoi(buf) != ATTACH_PROTOCOL_VER)) {
291 ArgumentIterator args(buf, (max_len)-left);
369 int LinuxAttachListener::write_fully(int s, char* buf, int len) { argument
371 int n = ::write(s, buf, len);
375 buf
[all...]
/openjdk7/jdk/src/solaris/native/java/util/
H A DTimeZone_md.c99 * or /usr/share/lib/zoneinfo/localtime on Solaris given in 'buf'.
100 * If file is symbolic link, then the contents it points to are in buf.
104 findZoneinfoFile(char *buf, size_t size, const char *dir) argument
165 tz = findZoneinfoFile(buf, size, pathname);
181 if (memcmp(buf, dbuf, size) == 0) {
228 char *buf; local
302 buf = (char *) malloc(size);
303 if (buf == NULL) {
308 if (read(fd, buf, size) != (ssize_t) size) {
310 free((void *) buf);
516 cleanupScf(scf_handle_t *h, scf_snapshot_t *snap, scf_instance_t *inst, scf_propertygroup_t *pg, scf_property_t *prop, scf_value_t *val, char *buf) argument
556 char *buf; local
687 char sign, buf[16]; local
711 char sign, buf[32]; local
[all...]
/openjdk7/jdk/src/share/classes/sun/security/util/
H A DDerOutputStream.java75 * @param buf buffered data, which must be DER-encoded
77 public void write(byte tag, byte[] buf) throws IOException { argument
79 putLength(buf.length);
80 write(buf, 0, buf.length);
95 write(out.buf, 0, out.count);
118 write(value.buf, 1, value.count-1);
165 byte[] buf = i.toByteArray(); // least number of bytes
166 putLength(buf.length);
167 write(buf,
[all...]
/openjdk7/jdk/test/java/nio/channels/AsynchronousSocketChannel/
H A DBasic.java286 ByteBuffer buf = ByteBuffer.allocateDirect(100);
288 ch.read(buf);
360 ByteBuffer buf = ByteBuffer.allocate(1);
361 Future<Integer> res = ch.read(buf);
384 buf = ByteBuffer.wrap("a".getBytes());
385 ch.write(buf).get();
402 ByteBuffer buf = ByteBuffer.allocate(1);
403 buf.put((byte)0);
404 int n = ch.read(buf).get();
484 ByteBuffer buf
[all...]

Completed in 107 milliseconds

<<21222324252627282930>>