template <typename BuilderImpl>
class WireTableBaseBuilder
Defined at line 12973 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/cpp/fidl/fuchsia.sysmem2/cpp/wire_types.h
Public Methods
::fuchsia_sysmem2::wire::BufferUsage Build ()
Build and return the table. The builder should not be used after this.
bool has_none ()
void clear_none ()
Clears the none field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
uint32_t & none ()
If the client sets this field, the client should not set any other
fields in the same table instance. The only valid bit in this field is
`NONE_USAGE` which must be set if this field is set. The point of this
field and the one bit set in this field is to essentially prove that the
client really means they aren't going to use the buffers, so don't need
any VMOs (didn't just fail to fill out the table).
BuilderImpl & none (uint32_t elem)
If the client sets this field, the client should not set any other
fields in the same table instance. The only valid bit in this field is
`NONE_USAGE` which must be set if this field is set. The point of this
field and the one bit set in this field is to essentially prove that the
client really means they aren't going to use the buffers, so don't need
any VMOs (didn't just fail to fill out the table).
bool has_cpu ()
void clear_cpu ()
Clears the cpu field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
uint32_t & cpu ()
If set, holds CPU usage bits. See `CPU_USAGE_*` flags in usages.fidl.
BuilderImpl & cpu (uint32_t elem)
If set, holds CPU usage bits. See `CPU_USAGE_*` flags in usages.fidl.
bool has_vulkan ()
void clear_vulkan ()
Clears the vulkan field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
uint32_t & vulkan ()
If set, holds vulkan usage bits. See `VULKAN_IMAGE_*` and
`VULKAN_BUFFER_*` bits in usages.fidl. The `VULKAN_USAGE_*` bit
definitions/names are deprecated.
BuilderImpl & vulkan (uint32_t elem)
If set, holds vulkan usage bits. See `VULKAN_IMAGE_*` and
`VULKAN_BUFFER_*` bits in usages.fidl. The `VULKAN_USAGE_*` bit
definitions/names are deprecated.
bool has_display ()
void clear_display ()
Clears the display field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
uint32_t & display ()
If set, holds display usage bits. See `DISPLAY_USAGE_*` bits in
usages.fidl.
BuilderImpl & display (uint32_t elem)
If set, holds display usage bits. See `DISPLAY_USAGE_*` bits in
usages.fidl.
bool has_video ()
void clear_video ()
Clears the video field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
uint32_t & video ()
If set, holds video usage bits. See `VIDEO_USAGE_*` bits in usages.fidl.
BuilderImpl & video (uint32_t elem)
If set, holds video usage bits. See `VIDEO_USAGE_*` bits in usages.fidl.
Protected Methods
void WireTableBaseBuilder< ::fuchsia_sysmem2::wire::BufferUsage, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_sysmem2::wire::BufferUsage>> && frame)