presto-main/src/main/java/io/prestosql/execution/buffer/PagesSerdeUtil.java/PagesSerdeUtil/writePages
class PagesSerdeUtil:    public static long writePages(PagesSerde serde, SliceOutput sliceOutput, Page... pages)
    {
        return writePages(serde, sliceOutput, asList(pages).iterator());
    }