class SampleReady
Defined at line 736 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/cpp/wire_types.h
`SampleReady` carries the data for a ready-to-consume sample.
Public Methods
bool IsEmpty ()
Returns whether no field is set.
bool HasUnknownData ()
Returns whether the table references unknown fields.
void SampleReady ()
Defined at line 738 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/cpp/wire_types.h
void SampleReady (const SampleReady & other)
Defined at line 739 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/cpp/wire_types.h
void _CloseHandles ()
::fidl::WireTableBuilder< ::fuchsia_diagnostics::wire::SampleReady> Builder (::fidl::AnyArena & arena)
Return a builder that by defaults allocates of an arena.
::fidl::WireTableExternalBuilder< ::fuchsia_diagnostics::wire::SampleReady> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_diagnostics::wire::SampleReady>> frame)
Return a builder that relies on explicitly allocating |fidl::ObjectView|s.
::fidl::ClientEnd< ::fuchsia_diagnostics::BatchIterator> & batch_iter ()
`batch_iter` is the `BatchIterator` over the set of data.
bool has_batch_iter ()
SampleReady & operator= (const SampleReady & other)
Defined at line 740 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/cpp/wire_types.h
void SampleReady (SampleReady && other)
Defined at line 741 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/cpp/wire_types.h
SampleReady & operator= (SampleReady && other)
Defined at line 742 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/cpp/wire_types.h
int64_t & seconds_since_start ()
`seconds_since_start` is `ticks * interval_secs` for the current
polling period.
This can be used to check whether a value in the batch corresponds
to a `SampleDatum`, assuming you have not registered the same selector
with different `SampleStrategy` types. The procedure is:
1) Resolve `batch_iter` into a set of Inspect hierarchies.
2) Filter the set of `SampleDatum`s committed to this server with
the predicate `seconds_since_start % datum.interval_secs == 0`.
3) Any selector from the filtered `SampleDatum`s that matches data
in the resolved Inspect hierarchies is valid.
If you DO have one selector registered twice with different strategies,
you must maintain a local cache and check the value yourself.
bool has_seconds_since_start ()
SampleReady & set_batch_iter (::fidl::ClientEnd< ::fuchsia_diagnostics::BatchIterator> elem)
SampleReady & clear_batch_iter ()
SampleReady & set_seconds_since_start (::fidl::ObjectView<int64_t> elem)
SampleReady & set_seconds_since_start (std::nullptr_t )
SampleReady & clear_seconds_since_start ()
void SampleReady (::fidl::AnyArena & allocator)
void SampleReady (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_diagnostics::wire::SampleReady>> && 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_diagnostics::wire::SampleReady>> && frame_ptr)
void ~SampleReady ()
Defined at line 744 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/cpp/wire_types.h
Friends
class WireTableBaseBuilder
class WireTableBaseBuilder