template <typename BuilderImpl>

class WireTableBaseBuilder

Defined at line 2214 of file fidling/gen/sdk/fidl/fuchsia.hardware.network/fuchsia.hardware.network/cpp/fidl/fuchsia.hardware.network/cpp/wire_types.h

Public Methods

::fuchsia_hardware_network::wire::SessionInfo Build ()

Build and return the table. The builder should not be used after this.

bool has_descriptors ()
void clear_descriptors ()

Clears the descriptors field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

::zx::vmo & descriptors ()

VMO containing the descriptors. Required.

16-bit indices transmitted over the FIFOs index a descriptor in this VMO

(byte offset = descriptor_length * 8 * index).

BuilderImpl & descriptors (::zx::vmo elem)

VMO containing the descriptors. Required.

16-bit indices transmitted over the FIFOs index a descriptor in this VMO

(byte offset = descriptor_length * 8 * index).

bool has_data ()
void clear_data ()

Clears the data field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

::zx::vmo & data ()

VMO containing frame data. Required.

Descriptors contain byte-offsets that are used to index arbitrary

regions in `data`.

BuilderImpl & data (::zx::vmo elem)

VMO containing frame data. Required.

Descriptors contain byte-offsets that are used to index arbitrary

regions in `data`.

bool has_descriptor_version ()
void clear_descriptor_version ()

Clears the descriptor_version field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

uint8_t & descriptor_version ()

Requested descriptor version. Required.

If the network device does not support the requested descriptor version,

[`Device.OpenSession`] fails with `ZX_ERR_NOT_SUPPORTED`.

BuilderImpl & descriptor_version (uint8_t elem)

Requested descriptor version. Required.

If the network device does not support the requested descriptor version,

[`Device.OpenSession`] fails with `ZX_ERR_NOT_SUPPORTED`.

bool has_descriptor_length ()
void clear_descriptor_length ()

Clears the descriptor_length field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

uint8_t & descriptor_length ()

Descriptor length, in 64-bit words. Required.

The length of each descriptor in the `descriptors` VMO. This is used as

a multiplier to find byte offsets in `descriptors` given a descriptor

index passed through the rx or tx FIFOs.

BuilderImpl & descriptor_length (uint8_t elem)

Descriptor length, in 64-bit words. Required.

The length of each descriptor in the `descriptors` VMO. This is used as

a multiplier to find byte offsets in `descriptors` given a descriptor

index passed through the rx or tx FIFOs.

bool has_descriptor_count ()
void clear_descriptor_count ()

Clears the descriptor_count field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

uint16_t & descriptor_count ()

Total number of descriptors that can be used by this session. Required.

Descriptor indices transferred through either the rx or tx FIFO must be

in the range [0, `descriptor_count`).

BuilderImpl & descriptor_count (uint16_t elem)

Total number of descriptors that can be used by this session. Required.

Descriptor indices transferred through either the rx or tx FIFO must be

in the range [0, `descriptor_count`).

bool has_options ()
void clear_options ()

Clears the options field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

::fuchsia_hardware_network::wire::SessionFlags & options ()

Extra options. Interpreted as empty bitmask if absent.

BuilderImpl & options (::fuchsia_hardware_network::wire::SessionFlags elem)

Extra options. Interpreted as empty bitmask if absent.

Protected Methods

void WireTableBaseBuilder< ::fuchsia_hardware_network::wire::SessionInfo, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_network::wire::SessionInfo>> && frame)

Records