Constant MAX_RX_SPACE_BUFFERS
pub const MAX_RX_SPACE_BUFFERS: u32 = 2047; // 2_047u32
Expand description
The maximum number of RxSpaceBuffer
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 maximum size of an RxSpaceBuffer
is 32 bytes, and
the fixed overhead of the QueueRxSpace
request is 32 bytes (16 for the
FIDL message header + 16 for the vector), so we selected the maximum N where
32 + N * 32 <= 65 KiB.