Segments are partially decoded APDUs that include sufficient information for the application to buffer/accumulate into a non-segmented APDU. The include information like invoke_id, sequence number, if more segments are to follow, window size, etc.
This is a first pass. The new "Segment" struct may be unnecessary - instead just implementing encode_for_accumulation on each service choice may be sufficient. TBC as my app matures.
Segments are partially decoded APDUs that include sufficient information for the application to buffer/accumulate into a non-segmented APDU. The include information like invoke_id, sequence number, if more segments are to follow, window size, etc.
This is a first pass. The new "Segment" struct may be unnecessary - instead just implementing
encode_for_accumulation
on each service choice may be sufficient. TBC as my app matures.