presto-orc/src/main/java/io/prestosql/orc/stream/StreamDataOutput.java/StreamDataOutput/writeData
class StreamDataOutput:    @Override
    public void writeData(SliceOutput sliceOutput)
    {
        long size = writer.applyAsLong(sliceOutput);
        verify(stream.getLength() == size, "Data stream did not write expected size");
    }