/libcore/ojluni/src/main/java/java/net/ |
H A D | URLConnection.java | 1744 byte buf[] = new byte[len]; 1745 if (is.read(buf, 0, len) < len) { 1751 c[i] = buf[i] & 0xff;
|
/libcore/ojluni/src/main/java/java/nio/ |
H A D | HeapByteBuffer.java | 58 HeapByteBuffer(byte[] buf, int off, int len) { // package-private argument 59 this(buf, off, len, false); 62 HeapByteBuffer(byte[] buf, int off, int len, boolean isReadOnly) { // package-private argument 63 super(-1, off, off + len, buf.length, buf, 0); 67 protected HeapByteBuffer(byte[] buf, argument 70 this(buf, mark, pos, lim, cap, off, false); 73 protected HeapByteBuffer(byte[] buf, argument 76 super(mark, pos, lim, cap, buf, off);
|
H A D | HeapCharBuffer.java | 53 HeapCharBuffer(char[] buf, int off, int len) { // package-private argument 54 this(buf, off, len, false); 57 HeapCharBuffer(char[] buf, int off, int len, boolean isReadOnly) { // package-private argument 58 super(-1, off, off + len, buf.length, buf, 0); 62 protected HeapCharBuffer(char[] buf, argument 65 this(buf, mark, pos, lim, cap, off, false); 68 protected HeapCharBuffer(char[] buf, argument 71 super(mark, pos, lim, cap, buf, off);
|
H A D | HeapDoubleBuffer.java | 48 HeapDoubleBuffer(double[] buf, int off, int len) { // package-private argument 49 this(buf, off, len, false); 52 protected HeapDoubleBuffer(double[] buf, argument 55 this(buf, mark, pos, lim, cap, off, false); 63 HeapDoubleBuffer(double[] buf, int off, int len, boolean isReadOnly) { // package-private argument 64 super(-1, off, off + len, buf.length, buf, 0); 68 protected HeapDoubleBuffer(double[] buf, argument 71 super(mark, pos, lim, cap, buf, off);
|
H A D | HeapFloatBuffer.java | 53 HeapFloatBuffer(float[] buf, int off, int len) { // package-private argument 54 this(buf, off, len, false); 57 HeapFloatBuffer(float[] buf, int off, int len, boolean isReadOnly) { // package-private argument 58 super(-1, off, off + len, buf.length, buf, 0); 62 protected HeapFloatBuffer(float[] buf, argument 65 this(buf, mark, pos, lim, cap, off, false); 68 protected HeapFloatBuffer(float[] buf, argument 71 super(mark, pos, lim, cap, buf, off);
|
H A D | HeapIntBuffer.java | 53 HeapIntBuffer(int[] buf, int off, int len) { // package-private argument 54 this(buf, off, len, false); 57 HeapIntBuffer(int[] buf, int off, int len, boolean isReadOnly) { // package-private argument 58 super(-1, off, off + len, buf.length, buf, 0); 62 protected HeapIntBuffer(int[] buf, argument 65 this(buf, mark, pos, lim, cap, off, false); 68 protected HeapIntBuffer(int[] buf, argument 71 super(mark, pos, lim, cap, buf, off);
|
H A D | HeapLongBuffer.java | 54 HeapLongBuffer(long[] buf, int off, int len) { // package-private argument 55 this(buf, off, len, false); 58 HeapLongBuffer(long[] buf, int off, int len, boolean isReadOnly) { // package-private argument 59 super(-1, off, off + len, buf.length, buf, 0); 63 protected HeapLongBuffer(long[] buf, argument 66 this(buf, mark, pos, lim, cap, off, false); 69 protected HeapLongBuffer(long[] buf, argument 72 super(mark, pos, lim, cap, buf, off);
|
H A D | HeapShortBuffer.java | 53 HeapShortBuffer(short[] buf, int off, int len) { // package-private argument 54 this(buf, off, len, false); 57 HeapShortBuffer(short[] buf, int off, int len, boolean isReadOnly) { // package-private argument 58 super(-1, off, off + len, buf.length, buf, 0); 62 protected HeapShortBuffer(short[] buf, argument 65 this(buf, mark, pos, lim, cap, off, false); 68 protected HeapShortBuffer(short[] buf, argument 71 super(mark, pos, lim, cap, buf, off);
|
H A D | MappedByteBuffer.java | 87 MappedByteBuffer(int mark, int pos, int lim, int cap, byte[] buf, int offset) { argument 88 super(mark, pos, lim, cap, buf, offset);
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | Channels.java | 215 private byte buf[] = new byte[0]; field in class:Channels.ReadableByteChannelImpl 231 if (buf.length < bytesToRead) 232 buf = new byte[bytesToRead]; 237 bytesRead = in.read(buf, 0, bytesToRead); 245 dst.put(buf, 0, bytesRead); 284 private byte buf[] = new byte[0]; field in class:Channels.WritableByteChannelImpl 299 if (buf.length < bytesToWrite) 300 buf = new byte[bytesToWrite]; 301 src.get(buf, 0, bytesToWrite); 304 out.write(buf, [all...] |
/libcore/ojluni/src/main/java/java/nio/charset/ |
H A D | CharsetEncoder.java | 917 ByteBuffer buf = encode(cb); 918 return buf.hasRemaining();
|
/libcore/ojluni/src/main/java/java/security/ |
H A D | MessageDigest.java | 389 * @param buf output buffer for the computed digest 393 * @param len number of bytes within buf allotted for the digest 395 * @return the number of bytes placed into <code>buf</code> 399 public int digest(byte[] buf, int offset, int len) throws DigestException { argument 400 if (buf == null) { 403 if (buf.length - offset < len) { 407 int numBytes = engineDigest(buf, offset, len); 609 protected int engineDigest(byte[] buf, int offset, int len) argument 611 return digestSpi.engineDigest(buf, offset, len);
|
H A D | MessageDigestSpi.java | 155 * @param buf the output buffer in which to store the digest 159 * @param len number of bytes within buf allotted for the digest. 173 protected int engineDigest(byte[] buf, int offset, int len) argument 179 if (buf.length - offset < digest.length) 182 System.arraycopy(digest, 0, buf, offset, digest.length);
|
/libcore/ojluni/src/main/java/java/sql/ |
H A D | Date.java | 160 char buf[] = "2000-00-00".toCharArray(); 161 buf[0] = Character.forDigit(year/1000,10); 162 buf[1] = Character.forDigit((year/100)%10,10); 163 buf[2] = Character.forDigit((year/10)%10,10); 164 buf[3] = Character.forDigit(year%10,10); 165 buf[5] = Character.forDigit(month/10,10); 166 buf[6] = Character.forDigit(month%10,10); 167 buf[8] = Character.forDigit(day/10,10); 168 buf[9] = Character.forDigit(day%10,10); 170 return new String(buf); [all...] |
/libcore/ojluni/src/main/java/java/text/ |
H A D | AttributedString.java | 675 * StringBuffer buf. 677 private final void appendContents(StringBuffer buf, argument 684 buf.append(iterator.current());
|
H A D | DigitList.java | 684 StringBuffer buf = getStringBuffer(); 685 buf.append("0."); 686 buf.append(digits, 0, count); 687 buf.append("x10^"); 688 buf.append(decimalAt); 689 return buf.toString();
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Arrays.java | 4632 StringBuilder buf = new StringBuilder(bufLen); 4633 deepToString(a, buf, new HashSet<Object[]>()); 4634 return buf.toString(); 4637 private static void deepToString(Object[] a, StringBuilder buf, argument 4640 buf.append("null"); 4645 buf.append("[]"); 4650 buf.append('['); 4655 buf.append("null"); 4661 buf.append(toString((byte[]) element)); 4663 buf [all...] |
H A D | Locale.java | 1352 StringBuilder buf = new StringBuilder(); 1356 buf.append(LanguageTag.canonicalizeLanguage(subtag)); 1361 buf.append(LanguageTag.SEP); 1362 buf.append(LanguageTag.canonicalizeScript(subtag)); 1367 buf.append(LanguageTag.SEP); 1368 buf.append(LanguageTag.canonicalizeRegion(subtag)); 1373 buf.append(LanguageTag.SEP); 1375 buf.append(s); 1380 buf.append(LanguageTag.SEP); 1381 buf [all...] |
H A D | Properties.java | 483 char[] buf = new char[newLength]; 484 System.arraycopy(lineBuf, 0, buf, 0, lineBuf.length); 485 lineBuf = buf;
|
H A D | Scanner.java | 350 private CharBuffer buf; field in class:Scanner 583 buf = CharBuffer.allocate(BUFFER_SIZE); 584 buf.limit(0); 585 matcher = delimPattern.matcher(buf); 803 if (buf.limit() == buf.capacity()) 807 int p = buf.position(); 808 buf.position(buf.limit()); 809 buf [all...] |
/libcore/ojluni/src/main/java/java/util/jar/ |
H A D | Attributes.java | 395 byte[] buf = new byte[lastline.length + len - 1]; 396 System.arraycopy(lastline, 0, buf, 0, lastline.length); 397 System.arraycopy(lbuf, 1, buf, lastline.length, len - 1); 399 lastline = buf; 402 value = new String(buf, 0, buf.length, "UTF8");
|
H A D | Manifest.java | 235 byte[] buf = new byte[lastline.length + len - 1]; 236 System.arraycopy(lastline, 0, buf, 0, lastline.length); 237 System.arraycopy(lbuf, 1, buf, lastline.length, len - 1); 240 lastline = buf; 243 name = new String(buf, 0, buf.length, "UTF8"); 322 private byte buf[]; field in class:Manifest.FastInputStream 332 buf = new byte[size]; 342 return buf[pos++] & 0xff; 348 if (len >= buf [all...] |
/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | CheckedInputStream.java | 70 * @param buf the buffer into which the data is read 75 * @exception NullPointerException If <code>buf</code> is <code>null</code>. 78 * <code>buf.length - off</code> 81 public int read(byte[] buf, int off, int len) throws IOException { argument 82 len = in.read(buf, off, len); 84 cksum.update(buf, off, len); 96 byte[] buf = new byte[512]; 100 len = read(buf, 0, len < buf.length ? (int)len : buf [all...] |
H A D | Deflater.java | 79 private byte[] buf = new byte[0]; field in class:Deflater 207 this.buf = b; 532 buf = null;
|
H A D | DeflaterInputStream.java | 50 protected final byte[] buf; field in class:DeflaterInputStream 117 buf = new byte[bufLen]; 190 n = in.read(buf, 0, buf.length); 195 def.setInput(buf, 0, n);
|