template <typename BuilderImpl>
class WireTableBaseBuilder
Defined at line 713 of file fidling/gen/sdk/fidl/fuchsia.hardware.goldfish/fuchsia.hardware.goldfish/cpp/fidl/fuchsia.hardware.goldfish/cpp/wire_types.h
Public Methods
::fuchsia_hardware_goldfish::wire::CreateBuffer2Params Build ()
Build and return the table. The builder should not be used after this.
bool has_size ()
void clear_size ()
Clears the size field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
uint64_t & size ()
Size of the buffer (unit: byte).
This argument is mandatory. `CreateBuffer2()` method returns
`ZX_ERR_INVALID_ARGS` if `size` is missing.
BuilderImpl & size (Wrapper_Ignore_Me_< ::fidl::ObjectView<uint64_t>> elem)
Size of the buffer (unit: byte).
This argument is mandatory. `CreateBuffer2()` method returns
`ZX_ERR_INVALID_ARGS` if `size` is missing.
bool has_memory_property ()
void clear_memory_property ()
Clears the memory_property field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
uint32_t & memory_property ()
Memory property flags the buffer should support. Only bits
from `fuchsia.hardware.goldfish.MEMORY_PROPERTY_*` are allowed.
This argument is mandatory. `CreateBuffer2()` method returns
`ZX_ERR_INVALID_ARGS` if `memory_property` is missing.
BuilderImpl & memory_property (uint32_t elem)
Memory property flags the buffer should support. Only bits
from `fuchsia.hardware.goldfish.MEMORY_PROPERTY_*` are allowed.
This argument is mandatory. `CreateBuffer2()` method returns
`ZX_ERR_INVALID_ARGS` if `memory_property` is missing.
bool has_physical_address ()
void clear_physical_address ()
Clears the physical_address field.
This method should be used sparingly, such as only during tests, as it has
O(number_of_fields) complexity.
uint64_t & physical_address ()
Goldfish address space device allocates a physical memory address
for each host-visible buffer. This address is mapped to a
corresponding hardware address when that host-visible buffer is
created, and is unmapped when the buffer is torn down.
This field stores the physical memory address allocated by address
space device.
If `memory_property` has the bit `MEMORY_PROPERTY_HOST_VISIBLE` set,
this argument is mandatory. If `physical_address` is missing,
`CreateBuffer2()` returns `ZX_ERR_INVALID_ARGS`.
If `memory_property` doesn't have the `MEMORY_PROPERTY_HOST_VISIBLE`
bit, this argument is ignored.
BuilderImpl & physical_address (Wrapper_Ignore_Me_< ::fidl::ObjectView<uint64_t>> elem)
Goldfish address space device allocates a physical memory address
for each host-visible buffer. This address is mapped to a
corresponding hardware address when that host-visible buffer is
created, and is unmapped when the buffer is torn down.
This field stores the physical memory address allocated by address
space device.
If `memory_property` has the bit `MEMORY_PROPERTY_HOST_VISIBLE` set,
this argument is mandatory. If `physical_address` is missing,
`CreateBuffer2()` returns `ZX_ERR_INVALID_ARGS`.
If `memory_property` doesn't have the `MEMORY_PROPERTY_HOST_VISIBLE`
bit, this argument is ignored.
Protected Methods
void WireTableBaseBuilder< ::fuchsia_hardware_goldfish::wire::CreateBuffer2Params, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_goldfish::wire::CreateBuffer2Params>> && frame)