template <>
class WireBufferEventSender
Defined at line 9831 of file fidling/gen/sdk/fidl/fuchsia.gpu.magma/fuchsia.gpu.magma/cpp/fidl/fuchsia.gpu.magma/cpp/wire_messaging.h
Public Methods
fidl::OneWayStatus OnNotifyMessagesConsumed (uint64_t count)
Indicates the given number of messages were consumed by the server.
The caller should limit the number of inflight messages:
(messages sent - server consumed)
<
= MaxMessages (see QueryId::MAXIMUM_INFLIGHT_PARAMS).
Messages are actually consumed by the server as quickly as possible, however this event
is sent by the server only when the consumed count reaches half the maximum.
fidl::OneWayStatus OnNotifyMemoryImported (uint64_t bytes)
Indicates the given number of buffer memory bytes were imported by the server.
The caller should limit the amount of memory from inflight ImportBuffer messages:
(bytes sent - server imported)
<
= MaxBytes (see QueryId::MAXIMUM_INFLIGHT_PARAMS).
This is a soft limit designed to prevent excessive memory consumption, but for large
messages the client may exceed the limit.
Memory is imported by the server as quickly as possible, however this event
is sent only when the consumed byte count reaches half the maximum; therefore,
if the client's count of inflight bytes is less than max/2, the client should send the
ImportBuffer message regardless of its size.