pack

fun pack(compressedArchive: Boolean, alloc: ByteBufAllocator = ByteBufAllocator.DEFAULT): ByteBuf

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

compressedArchive

true if the archive should be compressed as a whole, false if each entry should be compressed individually.

alloc

the allocator.