Constant MAX_TX_RESULTS

Source
pub const MAX_TX_RESULTS: u32 = 8188;
Expand description

The maximum number of TxResult structs that could be sent in a single FIDL message while staying within the maximum message size enforced by the bindings.

At the time of writing, FIDL messages are limited to 65 KiB. In the current FIDL wire format, the size of each TxResult is 8 bytes, and the fixed overhead of the CompleteTx request is 32 bytes (16 for the FIDL message header + 16 for the vector), so we selected the maximum N where 32 + N * 8 <= 65 KiB.