class Data
Defined at line 134 of file fidling/gen/sdk/fidl/fuchsia.mem/fuchsia.mem/cpp/fidl/fuchsia.mem/cpp/natural_types.h
Binary data that might be stored inline or in a VMO.
Useful for performance-sensitive protocols that sometimes receive small
amounts of binary data (i.e., which is more efficient to provide using
`bytes`) but also need to support arbitrary amounts of data (i.e., which
need to be provided out-of-line in a `Buffer`).
Public Methods
void Data (Data && other)
Data & operator= (Data && other)
bool IsUnknown ()
::fuchsia_mem::Data::Tag Which ()
Data WithBytes (::std::vector<uint8_t> val)
const ::fidl::internal::UnionMemberView<1, Storage_> bytes ()
::fidl::internal::UnionMemberView<1, Storage_> bytes ()
Data & bytes (::std::vector<uint8_t> value)
The binary data provided inline in the message.
Data WithBuffer (::fuchsia_mem::Buffer val)
const ::fidl::internal::UnionMemberView<2, Storage_> buffer ()
::fidl::internal::UnionMemberView<2, Storage_> buffer ()
Data & buffer (::fuchsia_mem::Buffer value)
The binary data provided out-of-line in a `Buffer`.
void Data (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Enumerations
enum Tag
| Name | Value |
|---|---|
| kBytes | 1 |
| kBuffer | 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 142 of file fidling/gen/sdk/fidl/fuchsia.mem/fuchsia.mem/cpp/fidl/fuchsia.mem/cpp/natural_types.h
Friends
class NaturalUnionCodingTraits