Sometimes the message body can be just a subset of a byte array and the only way now to send this subset is to copy it into another array and use it as message body.
To avoid a copy, the Channel could be extended with basicPublish methods that accept an array fragment parameter (array of byte, offset, and length).
More context: #421, #421 (comment), #421 (comment).
Sometimes the message body can be just a subset of a byte array and the only way now to send this subset is to copy it into another array and use it as message body.
To avoid a copy, the
Channelcould be extended withbasicPublishmethods that accept an array fragment parameter (array of byte, offset, and length).More context: #421, #421 (comment), #421 (comment).