/guava/guava/src/com/google/common/io/ReaderInputStream.java
totalBytesRead += drain( off + totalBytesRead, len - totalBytesRead) ;
totalBytesRead += drain ( b, off + totalBytesRead, len - totalBytesRead ) ;
} int totalBytesRead = 0; boolean doneEncoding = endOfInput; DRAINING: while (true) { if (draining) { <extra_id_0> if (totalBytesRead == len || doneFlushing) { return (totalBytesRead > 0) ? totalBytesRead : -1; } draining = false; Java8Compatibility.clear(byteBuffer); }