pack Best
Packs a .jag
archive into a compressed ByteBuf. The best compression method for minimising the size of the compressed archive is automatically selected. Note that this does not necessarily correspond to the minimimal amount of RAM usage at runtime.
This method allocates and returns a new ByteBuf. It is the caller's responsibility to release the ByteBuf.
Return
the compressed archive.
Parameters
alloc
the allocator.