presto-orc/src/main/java/io/prestosql/orc/OrcDataSourceUtils.java/OrcDataSourceUtils/getDiskRangeSlice
class OrcDataSourceUtils:    public static Slice getDiskRangeSlice(DiskRange diskRange, Map<DiskRange, Slice> buffers)
    {
        for (Entry<DiskRange, Slice> bufferEntry : buffers.entrySet()) {
            DiskRange bufferRange = bufferEntry.getKey();
            Slice buffer = bufferEntry.getValue();
            if (bufferRange.contains(diskRange)) {
                int offset = toIntExact(diskRange.getOffset() - bufferRange.getOffset());
                return buffer.slice(offset, diskRange.getLength());
            }
        }
        throw new IllegalStateException("No matching buffer for disk range");
    }