Home
last modified time | relevance | path

Searched refs:avail (Results 1 – 13 of 13) sorted by relevance

/libcore/ojluni/src/main/java/java/io/
DPushbackReader.java118 int avail = buf.length - pos; in read() local
119 if (avail > 0) { in read()
120 if (len < avail) in read()
121 avail = len; in read()
122 System.arraycopy(buf, pos, cbuf, off, avail); in read()
123 pos += avail; in read()
124 off += avail; in read()
125 len -= avail; in read()
130 return (avail == 0) ? -1 : avail; in read()
132 return avail + len; in read()
[all …]
DPushbackInputStream.java175 int avail = buf.length - pos; in read() local
176 if (avail > 0) { in read()
177 if (len < avail) { in read()
178 avail = len; in read()
180 System.arraycopy(buf, pos, b, off, avail); in read()
181 pos += avail; in read()
182 off += avail; in read()
183 len -= avail; in read()
188 return avail == 0 ? -1 : avail; in read()
190 return avail + len; in read()
[all …]
DBufferedInputStream.java279 int avail = count - pos; in read1() local
280 if (avail <= 0) { in read1()
289 avail = count - pos; in read1()
290 if (avail <= 0) return -1; in read1()
292 int cnt = (avail < len) ? avail : len; in read1()
374 long avail = count - pos; in skip() local
376 if (avail <= 0) { in skip()
383 avail = count - pos; in skip()
384 if (avail <= 0) in skip()
388 long skipped = (avail < n) ? avail : n; in skip()
[all …]
DCharArrayReader.java134 int avail = count - pos; in read() local
135 if (len > avail) { in read()
136 len = avail; in read()
164 long avail = count - pos; in skip() local
165 if (n > avail) { in skip()
166 n = avail; in skip()
DStringBufferInputStream.java122 int avail = count - pos; in read() local
123 if (len > avail) { in read()
124 len = avail; in read()
DByteArrayInputStream.java187 int avail = count - pos; in read() local
188 if (len > avail) { in read()
189 len = avail; in read()
DObjectOutputStream.java2137 int avail = (MAX_BLOCK_SIZE - pos) >> 1; in writeChars() local
2138 int stop = Math.min(endoff, off + avail); in writeChars()
2154 int avail = (MAX_BLOCK_SIZE - pos) >> 1; in writeShorts() local
2155 int stop = Math.min(endoff, off + avail); in writeShorts()
2171 int avail = (MAX_BLOCK_SIZE - pos) >> 2; in writeInts() local
2172 int stop = Math.min(endoff, off + avail); in writeInts()
2188 int avail = (MAX_BLOCK_SIZE - pos) >> 2; in writeFloats() local
2189 int chunklen = Math.min(endoff - off, avail); in writeFloats()
2204 int avail = (MAX_BLOCK_SIZE - pos) >> 3; in writeLongs() local
2205 int stop = Math.min(endoff, off + avail); in writeLongs()
[all …]
DObjectInputStream.java2621 int avail = canBlock ? Integer.MAX_VALUE : in.available(); in readBlockHeader() local
2622 if (avail == 0) { in readBlockHeader()
2629 if (avail < 2) { in readBlockHeader()
2636 if (avail < 5) { in readBlockHeader()
3203 int avail = end - pos; in readUTFBody() local
3204 if (avail >= 3 || (long) avail == utflen) { in readUTFBody()
3212 if (avail > 0) { in readUTFBody()
3213 System.arraycopy(buf, pos, buf, 0, avail); in readUTFBody()
3217 in.readFully(buf, avail, end - avail); in readUTFBody()
3236 int avail = Math.min(end - pos, CHAR_BUF_SIZE); in readUTFSpan() local
[all …]
/libcore/ojluni/src/main/java/java/util/jar/
DManifest.java346 int avail = count - pos; in read() local
347 if (avail <= 0) { in read()
352 avail = count - pos; in read()
353 if (avail <= 0) { in read()
357 if (len > avail) { in read()
358 len = avail; in read()
373 int avail = count - pos; in readLine() local
374 if (avail <= 0) { in readLine()
376 avail = count - pos; in readLine()
377 if (avail <= 0) { in readLine()
[all …]
/libcore/ojluni/src/main/java/java/net/
DDatagramSocket.java175 int avail = getImpl().dataAvailable(); in connectInternal() local
176 if (avail == -1) { in connectInternal()
179 explicitFilter = avail > 0; in connectInternal()
/libcore/ojluni/src/main/java/java/util/zip/
DZipFile.java491 long avail = zfin.size() - inf.getBytesWritten(); in available() local
492 return (avail > (long) Integer.MAX_VALUE ? in available()
493 Integer.MAX_VALUE : (int) avail); in available()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest.java472 int avail = 0; in test_13_writeChars() local
478 avail = ois.available() / 2; in test_13_writeChars()
479 for (int i = 0; i < avail; ++i) in test_13_writeChars()
DObjectOutputStreamTest.java824 int avail = 0; in test_writeCharsLjava_lang_String() local
830 avail = ois.available() / 2; in test_writeCharsLjava_lang_String()
831 for (int i = 0; i < avail; ++i) in test_writeCharsLjava_lang_String()