MessagePackerInstructionPlan
A plan that can dynamically pack instructions into transaction messages.
This plan provides a MessagePacker via the getMessagePacker
method, which enables instructions to be dynamically packed into the
provided transaction message until there are no more instructions to pack.
The returned MessagePacker offers a packMessageToCapacity(message)
method that packs the provided message — when possible — and a done()
method
that checks whether there are more instructions to pack.
Several helper functions are provided to create objects of this type such as getLinearMessagePackerInstructionPlan or getMessagePackerInstructionPlanFromInstructions.