Constant fidl_fuchsia_sysmem2::MAX_COUNT_CREATE_CHILDREN

source ·
pub const MAX_COUNT_CREATE_CHILDREN: i32 = 64;
Expand description

The maximum number of token children of an OR group that can be created per call to [fuchsia.sysmem2/BufferCollectionTokenGroup.CreateChildrenSync].

Actually creating this many children isn’t recommended in most typical scenarios, but isn’t prevented, for testing reasons, and just in case an unusual scenario needs it. Mitigation of potentially high time complexity in sysmem will limit the actual number of group child combinations considered in aggregation attempts to a separate maximum that is not settable via sysmem protocols. The maximum number of total nodes in a sysmem token tree is limited to a separate maximum that is not settable via these protocols.