Encodes up to {@code length} bytes of the message into the provided byte array, starting at position {@code offset}.
TODO describe what happens if length is smaller than the encoded form, Currently Proton-J throws an exception. What does Proton-C do?
@return the number of bytes written to the byte array
See Implementation
Encodes up to {@code length} bytes of the message into the provided byte array, starting at position {@code offset}.
TODO describe what happens if length is smaller than the encoded form, Currently Proton-J throws an exception. What does Proton-C do?
@return the number of bytes written to the byte array