/guava/android/guava/src/com/google/common/io/ByteStreams.java
if ( result != -1) {
if ( b == -1 ) {
if (read == -1) { return Arrays.copyOf(bytes, off); } remaining -= read; } int b = in.read(); <extra_id_0> return bytes; } Queue<byte[]> bufs = new ArrayDeque<>(TO_BYTE_ARRAY_DEQUE_SIZE + 2); bufs.add(bytes); bufs.add(new byte[] {(byte) b}); return toByteArrayInternal(in, bufs, bytes.length + 1);