Searched defs:buf (Results 51 - 75 of 549) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/solaris/native/sun/nio/fs/
H A DUnixCopyFile.c56 char buf[8192]; local
61 RESTARTABLE(read((int)src, &buf, sizeof(buf)), n);
74 char* bufp = buf;
/openjdk7/jdk/src/windows/native/java/io/
H A DConsole_md.c58 char buf[64]; local
61 sprintf(buf, "ms%d", cp);
63 sprintf(buf, "cp%d", cp);
64 return JNU_NewStringPlatform(env, buf);
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/Blowfish/
H A DBlowfishTestVector.java121 static private void byte2hex(byte b, StringBuffer buf) { argument
126 buf.append(hexChars[high]);
127 buf.append(hexChars[low]);
134 StringBuffer buf = new StringBuffer();
139 byte2hex(block[i], buf);
141 buf.append(":");
144 return buf.toString();
/openjdk7/jdk/test/com/sun/crypto/provider/KeyAgreement/
H A DDHKeyAgreement2.java258 private void byte2hex(byte b, StringBuffer buf) { argument
263 buf.append(hexChars[high]);
264 buf.append(hexChars[low]);
271 StringBuffer buf = new StringBuffer();
276 byte2hex(block[i], buf);
278 buf.append(":");
281 return buf.toString();
H A DDHKeyAgreement3.java166 private void byte2hex(byte b, StringBuffer buf) { argument
171 buf.append(hexChars[high]);
172 buf.append(hexChars[low]);
179 StringBuffer buf = new StringBuffer();
184 byte2hex(block[i], buf);
186 buf.append(":");
189 return buf.toString();
/openjdk7/jdk/test/com/sun/net/httpserver/bugs/
H A DB6361557.java94 ByteBuffer buf = (ByteBuffer)key.attachment();
96 int x = chan.read(buf);
97 if (x == -1 || responseComplete(buf)) {
128 static boolean responseComplete(ByteBuffer buf) { argument
129 int pos = buf.position();
130 buf.flip();
133 while (buf.hasRemaining()) {
134 byte b = buf.get();
144 buf.position(pos);
145 buf
[all...]
/openjdk7/jdk/test/java/io/BufferedInputStream/
H A DFill.java55 public int read(byte[] buf, int off, int len) throws IOException { argument
58 buf[i] = next++;
78 byte[] buf = new byte[8];
80 int n1 = r.read(buf);
81 int n2 = r.read(buf);
84 if (n1 != buf.length)
86 if (n2 != buf.length)
/openjdk7/jdk/test/java/io/BufferedReader/
H A DReadLine.java90 char[] buf = new char[9];
91 reader.read(buf, 0, 9);
92 String newStr = new String(buf);
134 public int read(char[] buf, int offset, int length) argument
139 buf[i] = (char)read();
H A DReady.java81 public int read(char[] buf, int offset, int length) argument
89 buf[i] = (char)read();
/openjdk7/jdk/test/java/io/LineNumberInputStream/
H A DAvailable.java57 char[] buf = {'a', 'b', 'c', 'd', '\n', field in class:MyInStream
62 return ((ctr == 12) ? -1 : (int)buf[ctr++]);
/openjdk7/jdk/test/java/io/Writer/
H A DWriteFromString.java72 private StringBuffer buf; field in class:LocalStringWriter
79 buf = new StringBuffer();
80 lock = buf;
97 buf.append(cbuf, off, len);
104 buf.append(str);
111 return buf.toString();
/openjdk7/jdk/test/java/io/charStreams/
H A DABCInputStream.java67 public int read(byte buf[], int off, int len) { argument
77 buf[i] = (byte) c;
/openjdk7/jdk/test/java/net/DatagramSocket/
H A DSendDatagramToBadAddress.java71 byte[] buf = new byte [128]; field in class:SendDatagramToBadAddress.Server
72 DatagramPacket pack = new DatagramPacket (buf, buf.length);
88 print ("Expected: " + new String (buf));
93 byte[] buf = s1.getBytes();
97 print ("Expected: " + new String (buf));
122 byte[] buf;
133 buf = ("Hello, server"+i).getBytes();
135 p = new DatagramPacket(buf, buf
[all...]
/openjdk7/jdk/test/java/nio/channels/SocketChannel/
H A DShortWrite.java55 final ByteBuffer buf; field in class:ShortWrite.Reader
59 this.buf = ByteBuffer.allocate(expectedSize);
63 while (buf.hasRemaining()) {
64 int n = sc.read(buf);
68 buf.flip();
69 return computeChecksum(buf);
85 ByteBuffer buf = ByteBuffer.allocate(size);
86 rand.nextBytes(buf.array());
92 int n = source.write(buf);
97 buf
[all...]
/openjdk7/jdk/src/share/native/java/lang/reflect/
H A DProxy.c57 char buf[128]; local
87 if (len >= (jsize)sizeof(buf)) {
94 utfName = buf;
104 if (utfName && utfName != buf)
/openjdk7/jdk/src/share/native/java/util/zip/
H A DAdler32.c39 Bytef buf[1]; local
41 buf[0] = (Bytef)b;
42 return adler32(adler, buf, 1);
49 Bytef *buf = (*env)->GetPrimitiveArrayCritical(env, b, 0); local
50 if (buf) {
51 adler = adler32(adler, buf + off, len);
52 (*env)->ReleasePrimitiveArrayCritical(env, b, buf, 0);
61 Bytef *buf = (Bytef *)jlong_to_ptr(address); local
62 if (buf) {
63 adler = adler32(adler, buf
[all...]
/openjdk7/jdk/src/share/native/sun/awt/libpng/
H A Dpngrio.c124 png_byte buf[NEAR_BUF_SIZE]; local
132 err = fread(buf, 1, read, io_ptr);
133 png_memcpy(data, buf, read); /* copy far buffer to near buffer */
/openjdk7/jdk/src/share/classes/sun/text/normalizer/
H A DReplaceableString.java56 private StringBuffer buf; field in class:ReplaceableString
64 buf = new StringBuffer(str);
69 * Construct a new object using <code>buf</code> for internal
70 * storage. The contents of <code>buf</code> at the time of
72 * Modifications to <code>buf</code> will modify this object, and
74 * @param buf object to be used as internal storage
77 public ReplaceableString(StringBuffer buf) { argument
78 this.buf = buf;
87 return buf
[all...]
/openjdk7/jdk/test/java/rmi/server/RMISocketFactory/useSocketFactory/activatable/
H A DCompressOutputStream.java38 int buf[] = new int[5]; field in class:CompressOutputStream
73 buf[bufPos++] = c;
75 int pack = (buf[0] << 24) | (buf[1] << 18) | (buf[2] << 12) |
76 (buf[3] << 6) | buf[4];
/openjdk7/jdk/test/java/rmi/server/RMISocketFactory/useSocketFactory/unicast/
H A DCompressOutputStream.java38 int buf[] = new int[5]; field in class:CompressOutputStream
73 buf[bufPos++] = c;
75 int pack = (buf[0] << 24) | (buf[1] << 18) | (buf[2] << 12) |
76 (buf[3] << 6) | buf[4];
/openjdk7/jdk/src/share/classes/sun/misc/
H A DJavaNioAccess.java54 void truncate(Buffer buf); argument
/openjdk7/jdk/src/solaris/classes/sun/java2d/jules/
H A DJulesShapePipe.java37 JulesPathBuf buf = new JulesPathBuf(); field in class:JulesShapePipe
74 buf.tesselateStroke(s, bs, thin, adjust, true,
79 buf.clear();
93 TrapezoidList traps = buf.tesselateFill(s, sg2d.transform,
97 buf.clear();
/openjdk7/jaxws/src/share/jaxws_classes/org/relaxng/datatype/helpers/
H A DStreamingValidatorImpl.java71 public void addCharacters( char[] buf, int start, int len ) { argument
73 buffer.append(buf,start,len);
/openjdk7/hotspot/agent/src/os/bsd/
H A Dsalibelf.c89 void *buf = NULL; local
91 return buf;
93 if ((buf = calloc(shdr->sh_size, 1)) == NULL) {
97 if (pread(fd, buf, shdr->sh_size, shdr->sh_offset) != shdr->sh_size) {
98 free(buf);
102 return buf;
/openjdk7/hotspot/agent/src/os/linux/
H A Dsalibelf.c88 void *buf = NULL; local
90 return buf;
92 if ((buf = calloc(shdr->sh_size, 1)) == NULL) {
96 if (pread(fd, buf, shdr->sh_size, shdr->sh_offset) != shdr->sh_size) {
97 free(buf);
101 return buf;

Completed in 471 milliseconds

1234567891011>>