presto-orc/src/main/java/io/prestosql/orc/LazySliceInput.java/LazySliceInput/available
class LazySliceInput:    @Override
    public int available()
    {
        if (delegate == null) {
            return globalLength;
        }
        return delegate.available();
    }