class SetConstraints

Defined at line 3472 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/cpp/fidl/fuchsia.sysmem2/cpp/markers.h

Provide [`fuchsia.sysmem2/BufferCollectionConstraints`] to the buffer

collection.

A participant may only call

[`fuchsia.sysmem2/BufferCollection.SetConstraints`] up to once per

[`fuchsia.sysmem2/BufferCollection`].

For buffer allocation to be attempted, all holders of a

`BufferCollection` client end need to call `SetConstraints` before

sysmem will attempt to allocate buffers.

+ request `constraints` These are the constraints on the buffer

collection imposed by the sending client/participant. The

`constraints` field is not required to be set. If not set, the client

is not setting any actual constraints, but is indicating that the

client has no constraints to set. A client that doesn't set the

`constraints` field won't receive any VMO handles, but can still find

out how many buffers were allocated and can still refer to buffers by

their `buffer_index`.

Public Members

static const bool kHasClientToServer
static const bool kHasClientToServerBody
static const bool kHasServerToClient
static const bool kHasServerToClientBody
static const bool kHasNonEmptyUserFacingResponse
static const bool kHasDomainError
static const bool kHasFrameworkError
static const uint64_t kOrdinal