pack
Packs a .jag archive into a compressed ByteBuf using the given compression method.
This method allocates and returns a new ByteBuf. It is the caller's responsibility to release the ByteBuf.
Return
the compressed archive.
Parameters
compressed Archive
true if the archive should be compressed as a whole, false if each entry should be compressed individually.
alloc
the allocator.