class Data
Defined at line 46 of file fidling/gen/sdk/fidl/fuchsia.mem/fuchsia.mem/cpp/fidl/fuchsia.mem/cpp/wire_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 ()
void ~Data ()
void Data (Data && other)
bool IsUnknown ()
Defined at line 59 of file fidling/gen/sdk/fidl/fuchsia.mem/fuchsia.mem/cpp/fidl/fuchsia.mem/cpp/wire_types.h
Data & operator= (Data && other)
bool has_invalid_tag ()
bool is_bytes ()
Data WithBytes (::fidl::ObjectView< ::fidl::VectorView<uint8_t>> val)
The binary data provided inline in the message.
template <typename... Args>
Data WithBytes (::fidl::AnyArena & allocator, Args &&... args)
The binary data provided inline in the message.
Defined at line 72 of file fidling/gen/sdk/fidl/fuchsia.mem/fuchsia.mem/cpp/fidl/fuchsia.mem/cpp/wire_types.h
::fidl::VectorView<uint8_t> & bytes ()
The binary data provided inline in the message.
const ::fidl::VectorView<uint8_t> & bytes ()
The binary data provided inline in the message.
bool is_buffer ()
Data WithBuffer (::fidl::ObjectView< ::fuchsia_mem::wire::Buffer> val)
The binary data provided out-of-line in a `Buffer`.
template <typename... Args>
Data WithBuffer (::fidl::AnyArena & allocator, Args &&... args)
The binary data provided out-of-line in a `Buffer`.
Defined at line 90 of file fidling/gen/sdk/fidl/fuchsia.mem/fuchsia.mem/cpp/fidl/fuchsia.mem/cpp/wire_types.h
::fuchsia_mem::wire::Buffer & buffer ()
The binary data provided out-of-line in a `Buffer`.
const ::fuchsia_mem::wire::Buffer & buffer ()
The binary data provided out-of-line in a `Buffer`.
::fuchsia_mem::wire::Data::Tag Which ()
void _CloseHandles ()
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() |
Defined at line 54 of file fidling/gen/sdk/fidl/fuchsia.mem/fuchsia.mem/cpp/fidl/fuchsia.mem/cpp/wire_types.h