class AllocResources

Defined at line 175 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.function/fuchsia.hardware.usb.function/cpp/fidl/fuchsia.hardware.usb.function/cpp/markers.h

Allocates resources for the function.

This function is used to allocate resources for the function.

`interface_count` informs how many interfaces to create.

`interface_nums` returns the allocate interface numbers referencing

the requested interfaces.

`endpoints` is a vector of endpoints to allocate. The direction and

endpoint server end are provided.

`endpoint_addrs` returns a vector of the same size containing the

allocated endpoint addresses. On success the endpoint server ends are

connected to a server. Closed otherwise.

`strings` is a vector of strings to allocate.

`string_indices` returns a vector of the same size containing the

allocated string indices.

Returns the interface ids, endpoint ids, and string ids that were

allocated. On error, no resources are allocated. Returns:

* `ZX_ERR_NO_RESOURCES` if any resource namespace numbers are

exhausted.

The allocated resource numbers and addresses remain allocated for the

lifetime of the connection to `UsbFunction`.

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