presto-orc/src/main/java/io/prestosql/orc/stream/OrcInputStream.java/OrcInputStream/read
class OrcInputStream:    @Override
    public int read(byte[] b, int off, int length)
            throws IOException
    {
        if (current == null) {
            return -1;
        }

        if (current.remaining() == 0) {
            advance();
            if (current == null) {
                return -1;
            }
        }

        return current.read(b, off, length);
    }