presto-orc/src/main/java/io/prestosql/orc/stream/StreamDataOutput.java/StreamDataOutput/StreamDataOutput
class StreamDataOutput:    public StreamDataOutput(Slice slice, Stream stream)
    {
        this(
                sliceOutput -> {
                    sliceOutput.writeBytes(slice);
                    return slice.length();
                },
                stream);
    }