class Frame
Defined at line 1243 of file fidling/gen/sdk/fidl/fuchsia.net.tun/fuchsia.net.tun/cpp/fidl/fuchsia.net.tun/cpp/wire_types.h
A frame written to or read from a [`fuchsia.net.tun/Device`].
Required fields must always be provided to
[`fuchsia.net.tun/Port.WriteFrame`] and are always present when returned by
[`fuchsia.net.tun/Port.ReadFrame`].
Public Methods
void Frame ()
Defined at line 1246 of file fidling/gen/sdk/fidl/fuchsia.net.tun/fuchsia.net.tun/cpp/fidl/fuchsia.net.tun/cpp/wire_types.h
void Frame (const Frame & other)
Defined at line 1247 of file fidling/gen/sdk/fidl/fuchsia.net.tun/fuchsia.net.tun/cpp/fidl/fuchsia.net.tun/cpp/wire_types.h
void Frame (Frame && other)
Defined at line 1249 of file fidling/gen/sdk/fidl/fuchsia.net.tun/fuchsia.net.tun/cpp/fidl/fuchsia.net.tun/cpp/wire_types.h
bool IsEmpty ()
Returns whether no field is set.
bool HasUnknownData ()
Returns whether the table references unknown fields.
::fidl::WireTableBuilder< ::fuchsia_net_tun::wire::Frame> Builder (::fidl::AnyArena & arena)
Return a builder that by defaults allocates of an arena.
::fidl::WireTableExternalBuilder< ::fuchsia_net_tun::wire::Frame> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_net_tun::wire::Frame>> frame)
Return a builder that relies on explicitly allocating |fidl::ObjectView|s.
::fuchsia_hardware_network::wire::FrameType & frame_type ()
The type identifying this frame's payload.
Required.
bool has_frame_type ()
::fidl::VectorView<uint8_t> & data ()
The frame's payload.
Valid iff non-empty.
Required.
bool has_data ()
::fuchsia_net_tun::wire::FrameMetadata & meta ()
Extra frame metadata.
This is an opaque holder for extra information that is associated with
Network Device data frames.
If not set, interpreted as empty.
bool has_meta ()
uint8_t & port ()
Frame's destination or source port identifier.
Required.
bool has_port ()
Frame & operator= (const Frame & other)
Defined at line 1248 of file fidling/gen/sdk/fidl/fuchsia.net.tun/fuchsia.net.tun/cpp/fidl/fuchsia.net.tun/cpp/wire_types.h
Frame & operator= (Frame && other)
Defined at line 1250 of file fidling/gen/sdk/fidl/fuchsia.net.tun/fuchsia.net.tun/cpp/fidl/fuchsia.net.tun/cpp/wire_types.h
Frame & set_frame_type (::fuchsia_hardware_network::wire::FrameType elem)
Frame & clear_frame_type ()
Frame & set_data (::fidl::ObjectView< ::fidl::VectorView<uint8_t>> elem)
Frame & set_data (std::nullptr_t )
Frame & clear_data ()
void ~Frame ()
Defined at line 1252 of file fidling/gen/sdk/fidl/fuchsia.net.tun/fuchsia.net.tun/cpp/fidl/fuchsia.net.tun/cpp/wire_types.h
template <typename... Args>
Frame & set_data (::fidl::AnyArena & allocator, Args &&... args)
Defined at line 1306 of file fidling/gen/sdk/fidl/fuchsia.net.tun/fuchsia.net.tun/cpp/fidl/fuchsia.net.tun/cpp/wire_types.h
Frame & set_meta (::fidl::ObjectView< ::fuchsia_net_tun::wire::FrameMetadata> elem)
Frame & set_meta (std::nullptr_t )
Frame & clear_meta ()
template <typename... Args>
Frame & set_meta (::fidl::AnyArena & allocator, Args &&... args)
Defined at line 1315 of file fidling/gen/sdk/fidl/fuchsia.net.tun/fuchsia.net.tun/cpp/fidl/fuchsia.net.tun/cpp/wire_types.h
Frame & set_port (uint8_t elem)
Frame & clear_port ()
void Frame (::fidl::AnyArena & allocator)
void Frame (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_net_tun::wire::Frame>> && frame)
This constructor allows a user controlled allocation (not using a Arena).
It should only be used when performance is key.
As soon as the frame is given to the table, it must not be used directly or for another table.
void Allocate (::fidl::AnyArena & allocator)
void Init (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_net_tun::wire::Frame>> && frame_ptr)
Friends
class WireTableBaseBuilder
class WireTableBaseBuilder