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