presto-orc/src/main/java/io/prestosql/orc/metadata/CompressedMetadataWriter.java/CompressedMetadataWriter/writeFooter
class CompressedMetadataWriter:    public Slice writeFooter(Footer footer)
            throws IOException
    {
        metadataWriter.writeFooter(buffer, footer);
        return getSliceOutput();
    }