Searched refs:buf (Results 1 - 25 of 282) sorted by last modified time

1234567891011>>

/libcore/ojluni/src/main/java/java/net/
H A DURLConnection.java1744 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 DHeapByteBuffer.java58 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 DHeapCharBuffer.java53 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 DHeapDoubleBuffer.java48 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 DHeapFloatBuffer.java53 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 DHeapIntBuffer.java53 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 DHeapLongBuffer.java54 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 DHeapShortBuffer.java53 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 DMappedByteBuffer.java87 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 DChannels.java215 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 DCharsetEncoder.java917 ByteBuffer buf = encode(cb);
918 return buf.hasRemaining();
/libcore/ojluni/src/main/java/java/security/
H A DMessageDigest.java389 * @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 DMessageDigestSpi.java155 * @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 DDate.java160 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 DAttributedString.java675 * StringBuffer buf.
677 private final void appendContents(StringBuffer buf, argument
684 buf.append(iterator.current());
H A DDigitList.java684 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 DArrays.java4632 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 DLocale.java1352 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 DProperties.java483 char[] buf = new char[newLength];
484 System.arraycopy(lineBuf, 0, buf, 0, lineBuf.length);
485 lineBuf = buf;
H A DScanner.java350 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 DAttributes.java395 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 DManifest.java235 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 DCheckedInputStream.java70 * @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 DDeflater.java79 private byte[] buf = new byte[0]; field in class:Deflater
207 this.buf = b;
532 buf = null;
H A DDeflaterInputStream.java50 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);

Completed in 786 milliseconds

1234567891011>>