/openjdk7/jdk/src/solaris/native/sun/nio/fs/ |
H A D | UnixCopyFile.c | 56 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 D | Console_md.c | 58 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 D | BlowfishTestVector.java | 121 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 D | DHKeyAgreement2.java | 258 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 D | DHKeyAgreement3.java | 166 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 D | B6361557.java | 94 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 D | Fill.java | 55 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 D | ReadLine.java | 90 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 D | Ready.java | 81 public int read(char[] buf, int offset, int length) argument 89 buf[i] = (char)read();
|
/openjdk7/jdk/test/java/io/LineNumberInputStream/ |
H A D | Available.java | 57 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 D | WriteFromString.java | 72 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 D | ABCInputStream.java | 67 public int read(byte buf[], int off, int len) { argument 77 buf[i] = (byte) c;
|
/openjdk7/jdk/test/java/net/DatagramSocket/ |
H A D | SendDatagramToBadAddress.java | 71 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 D | ShortWrite.java | 55 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 D | Proxy.c | 57 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 D | Adler32.c | 39 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 D | pngrio.c | 124 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 D | ReplaceableString.java | 56 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 D | CompressOutputStream.java | 38 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 D | CompressOutputStream.java | 38 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 D | JavaNioAccess.java | 54 void truncate(Buffer buf); argument
|
/openjdk7/jdk/src/solaris/classes/sun/java2d/jules/ |
H A D | JulesShapePipe.java | 37 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 D | StreamingValidatorImpl.java | 71 public void addCharacters( char[] buf, int start, int len ) { argument 73 buffer.append(buf,start,len);
|
/openjdk7/hotspot/agent/src/os/bsd/ |
H A D | salibelf.c | 89 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 D | salibelf.c | 88 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;
|