Cuts a frame into chunks that fit a link whose largest write is mtu bytes. Every chunk starts with the header
[msgId, index, total] (one byte each; index counts from 0) and carries at most mtu - 3 bytes of the frame, so the
chunks of one frame are ceil(length / (mtu - 3)) and never more than 255. A frame that is empty, longer than
LIMITS.frameMaxBytes, or too long for 255 chunks of this size is INVALID_ARGUMENT, and so is an msgId outside 0 to
255. The sender gives each frame its own msgId, counting up and wrapping at 256.
Cuts a frame into chunks that fit a link whose largest write is
mtubytes. Every chunk starts with the header[msgId, index, total](one byte each;indexcounts from 0) and carries at mostmtu - 3bytes of the frame, so the chunks of one frame areceil(length / (mtu - 3))and never more than 255. A frame that is empty, longer thanLIMITS.frameMaxBytes, or too long for 255 chunks of this size is INVALID_ARGUMENT, and so is anmsgIdoutside 0 to 255. The sender gives each frame its ownmsgId, counting up and wrapping at 256.