Module fragment

Module fragment 

Source
Expand description

Where a response frame can be cut, and which requests may be continued.

A read whose answer does not fit one payload is carried across several exchanges by fragmenting the response frame’s trailing content — the value of a CMD_PROP_IS, or the entry list of a CMD_PROP_ARE. Every fragment repeats the frame’s leading bytes, so each is a well-formed frame on its own, and the administrator recovers the whole by concatenating the trailing parts in order.

Both halves of the binding need the same answer to “where does the trailing content start”, so it lives here rather than in either.

Functions§

continuable
Whether a cursor may continue a request bearing this command.
produce
Cut a whole reply down to the fragment one exchange carries.
trailing
frame’s trailing content, empty for a frame that has none.
trailing_offset
Where frame’s trailing content begins, or None for a frame that has none and so cannot be fragmented.