class Data

Defined at line 238 of file fidling/gen/sdk/fidl/fuchsia.component.sandbox/fuchsia.component.sandbox/cpp/fidl/fuchsia.component.sandbox/cpp/natural_types.h

Public Methods

void Data (Data && other)
Data & operator= (Data && other)
void Data (const Data & other)
Data & operator= (const Data & other)
bool operator== (const Data & other)
bool operator!= (const Data & other)
bool IsUnknown ()
::fuchsia_component_sandbox::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)

Sets the union to hold the bytes member.

Data WithString (::std::string val)
const ::fidl::internal::UnionMemberView<2, Storage_> string ()
::fidl::internal::UnionMemberView<2, Storage_> string ()
Data & string (::std::string value)

Sets the union to hold the string member.

Data WithInt64 (int64_t val)
const ::fidl::internal::UnionMemberView<3, Storage_> int64 ()
::fidl::internal::UnionMemberView<3, Storage_> int64 ()
Data & int64 (int64_t value)

Sets the union to hold the int64 member.

Data WithUint64 (uint64_t val)
const ::fidl::internal::UnionMemberView<4, Storage_> uint64 ()
::fidl::internal::UnionMemberView<4, Storage_> uint64 ()
Data & uint64 (uint64_t value)

Sets the union to hold the uint64 member.

void Data (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Enumerations

enum Tag
Name Value
kBytes 1
kString 2
kInt64 3
kUint64 4
_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 250 of file fidling/gen/sdk/fidl/fuchsia.component.sandbox/fuchsia.component.sandbox/cpp/fidl/fuchsia.component.sandbox/cpp/natural_types.h

Friends

class NaturalUnionCodingTraits