pub const MAX_VIEW_COUNT: u32 = 300;
Expand description
The maximum number of ViewDescriptor
s a client can expect in a
ViewTreeSnapshot
.
There is a limit on the number of ViewDescriptor
s that can be included in a
ViewTreeSnapshot
due to the size restrictions of a FIDL channel. This limit was
calculated by finding out the maximum number of ViewDescriptor
s which can be
included in a ViewTreeSnapshot
when the BUFFER_SIZE
is 1.
Note: This value would have to adjusted when modifying ViewDescriptor
.