presto-orc/src/main/java/io/prestosql/orc/stream/OrcDataOutput.java/OrcDataOutput/createDataOutput
class OrcDataOutput:    static OrcDataOutput createDataOutput(Slice slice)
    {
        requireNonNull(slice, "slice is null");
        return new OrcDataOutput()
        {
            @Override
            public long size()
            {
                return slice.length();
            }

            @Override
            public void writeData(SliceOutput sliceOutput)
            {
                sliceOutput.writeBytes(slice);
            }
        };
    }