class SampleReady

Defined at line 1545 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

`SampleReady` carries the data for a ready-to-consume sample.

Public Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

const ::fidl::InterfaceHandle< ::fuchsia::diagnostics::BatchIterator> & batch_iter ()

`batch_iter` is the `BatchIterator` over the set of data.

Defined at line 1552 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

bool has_batch_iter ()

Defined at line 1556 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

::fidl::InterfaceHandle< ::fuchsia::diagnostics::BatchIterator> * mutable_batch_iter ()

`batch_iter` is the `BatchIterator` over the set of data.

Defined at line 1561 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

void clear_batch_iter ()

Defined at line 1569 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

const 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.

Defined at line 1592 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

bool has_seconds_since_start ()

Defined at line 1596 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

int64_t * mutable_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.

Defined at line 1615 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

void clear_seconds_since_start ()

Defined at line 1623 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

SampleReady & set_batch_iter (::fidl::InterfaceHandle< ::fuchsia::diagnostics::BatchIterator> _value)
SampleReady & set_seconds_since_start (int64_t _value)
void SampleReady ()
void SampleReady (SampleReady && other)
void ~SampleReady ()
SampleReady & operator= (SampleReady && other)
::std::unique_ptr<SampleReady> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, SampleReady * _value, size_t _offset)
zx_status_t Clone (SampleReady * _result)