class DataTransfer
Defined at line 57 of file fidling/gen/sdk/fidl/fuchsia.hardware.i2c/fuchsia.hardware.i2c/cpp/fidl/fuchsia.hardware.i2c/cpp/natural_types.h
If `read_size` is set: This is a read transfer, and `read_size` bytes will be read from the
target.
If `write_data` is set: This is a write transfer, and `write_data` will be written to the
target.
Public Methods
void DataTransfer (DataTransfer && other)
DataTransfer & operator= (DataTransfer && other)
void DataTransfer (const DataTransfer & other)
DataTransfer & operator= (const DataTransfer & other)
bool operator== (const DataTransfer & other)
bool operator!= (const DataTransfer & other)
bool IsUnknown ()
::fuchsia_hardware_i2c::DataTransfer::Tag Which ()
DataTransfer WithReadSize (uint32_t val)
const ::fidl::internal::UnionMemberView<1, Storage_> read_size ()
::fidl::internal::UnionMemberView<1, Storage_> read_size ()
DataTransfer & read_size (uint32_t value)
Sets the union to hold the read_size member.
DataTransfer WithWriteData (::std::vector<uint8_t> val)
const ::fidl::internal::UnionMemberView<2, Storage_> write_data ()
::fidl::internal::UnionMemberView<2, Storage_> write_data ()
DataTransfer & write_data (::std::vector<uint8_t> value)
Sets the union to hold the write_data member.
void DataTransfer (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Enumerations
enum Tag
| Name | Value |
|---|---|
| kReadSize | 1 |
| kWriteData | 2 |
| _do_not_handle_this__write_a_default_case_instead | ::std::numeric_limits<::fidl_union_tag_t>::max() |
TODO: share union tag types between wire
&
natural.
Defined at line 65 of file fidling/gen/sdk/fidl/fuchsia.hardware.i2c/fuchsia.hardware.i2c/cpp/fidl/fuchsia.hardware.i2c/cpp/natural_types.h
Friends
class NaturalUnionCodingTraits