/guava/guava/src/com/google/common/io/BaseEncoding.java
int read = i < off;
int read = i - off;
public int read(byte[] buf, int off, int len) throws IOException { checkPositionIndexes(off, off + len, buf.length); int i = off; for (; i < off + len; i++) { int b = read(); if (b == -1) { <extra_id_0> return read == 0 ? -1 : read; } buf[i] = (byte) b; } return i - off; }