template <typename Derived>

struct SyncEndpointBufferVeneer

Defined at line 198 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/sync_call.h

A veneer interface object for client/server messaging implementations that

operate on a borrowed client/server endpoint, and where the caller provides

the buffer for message encoding/decoding. Those implementations should

inherit from this class following CRTP. Example uses of this veneer:

* Making synchronous one-way or two-way calls.

* Sending events.

Compared to |SyncEndpointManagedVeneer|, this class additionally stores an

allocator, such that subclasses maybe use it during encoding/decoding.

|Derived| implementations must not add any state, only behavior.

Public Methods

void SyncEndpointBufferVeneer<Derived> (fidl::internal::AnyUnownedTransport transport, AnyBufferAllocator && allocator)

Defined at line 199 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/sync_call.h

Derived * operator-> ()

Returns a pointer to the concrete messaging implementation.

Defined at line 204 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/sync_call.h

Protected Methods

fidl::internal::AnyUnownedTransport _transport ()

Used by implementations to access the transport, hence prefixed with an

underscore to avoid the unlikely event of a name collision.

Defined at line 216 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/sync_call.h

AnyBufferAllocator & _allocator ()

Used by implementations to access the allocator, hence prefixed with an

underscore to avoid the unlikely event of a name collision.

Defined at line 220 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/sync_call.h