Searched refs:toRead (Results 1 – 3 of 3) sorted by relevance
113 int toRead = dest.remaining(); in read() local114 if ((devOffset + toRead) > getSize()) throw new IOException( in read()117 while (toRead > 0) { in read()120 toRead -= read; in read()
98 val toRead = minOf((buffer.length - start).toInt(), SIZE_TO_CHECK) in extractorFor() constant102 if (toRead <= 6) { in extractorFor()107 val tmpBuffer = ByteArray(toRead) { buffer[start + it] } in extractorFor()
919 long toRead = Math.min(len, availableToRead); in directOpen() local921 if (toRead == 0) { in directOpen()925 if (toRead > Integer.MAX_VALUE) { in directOpen()926 throw new IOException("Cannot read " + toRead + " bytes."); in directOpen()929 int r = directRead(mCurr, b, off, Ints.checkedCast(toRead)); in directOpen()