Home
last modified time | relevance | path

Searched refs:bytesToRead (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/main/java/sun/misc/
DIOUtils.java56 int bytesToRead; in readFully() local
58 bytesToRead = Math.min(length - pos, output.length + 1024); in readFully()
59 if (output.length < pos + bytesToRead) { in readFully()
60 output = Arrays.copyOf(output, pos + bytesToRead); in readFully()
63 bytesToRead = output.length - pos; in readFully()
65 int cc = is.read(output, pos, bytesToRead); in readFully()
DResource.java113 int bytesToRead; in getBytes() local
115 bytesToRead = Math.min(len - pos, b.length + 1024); in getBytes()
116 if (b.length < pos + bytesToRead) { in getBytes()
117 b = Arrays.copyOf(b, pos + bytesToRead); in getBytes()
120 bytesToRead = b.length - pos; in getBytes()
124 cc = in.read(b, pos, bytesToRead); in getBytes()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DDigestInputStream2Test.java111 int bytesToRead = inStream.available(); in test_read$BII() local
112 byte buf1[] = new byte[bytesToRead + 5]; in test_read$BII()
113 byte buf2[] = new byte[bytesToRead + 5]; in test_read$BII()
115 assertTrue("No data to read for this test", bytesToRead>0); in test_read$BII()
118 int bytesRead1 = dis.read(buf1, 5, bytesToRead); in test_read$BII()
119 int bytesRead2 = inStream1.read(buf2, 5, bytesToRead); in test_read$BII()
122 assertEquals("Didn't read the entire", bytesRead1, bytesToRead); in test_read$BII()
125 for (int i = 0; i < bytesToRead + 5; i++) { in test_read$BII()
/libcore/ojluni/src/main/java/java/nio/channels/
DChannels.java378 int bytesToRead = Math.min((len - totalRead),
380 if (buf.length < bytesToRead)
381 buf = new byte[bytesToRead];
386 bytesRead = in.read(buf, 0, bytesToRead);