class RealOrStreamTime

Defined at line 306 of file fidling/gen/sdk/fidl/fuchsia.media2/fuchsia.media2/cpp/fidl/fuchsia.media2/cpp/natural_types.h

Specifies a real time or a stream time. Real time is expressed using a

system monotonic or reference clock time. Stream time is expressed either as

a duration or as a packet timestamp in the relevant units. This type is used

when a transport control operation is to occur using a time value that is

meaningful when the transport is progressing.

Public Methods

void RealOrStreamTime (RealOrStreamTime && other)
RealOrStreamTime & operator= (RealOrStreamTime && other)
void RealOrStreamTime (const RealOrStreamTime & other)
RealOrStreamTime & operator= (const RealOrStreamTime & other)
bool operator== (const RealOrStreamTime & other)
bool operator!= (const RealOrStreamTime & other)
bool IsUnknown ()
::fuchsia_media2::RealOrStreamTime::Tag Which ()
RealOrStreamTime WithAsap (::fuchsia_media2::Asap val)
const ::fidl::internal::UnionMemberView<1, Storage_> asap ()
::fidl::internal::UnionMemberView<1, Storage_> asap ()
RealOrStreamTime & asap (::fuchsia_media2::Asap value)

As soon as possible.

RealOrStreamTime WithSystemTime (int64_t val)
const ::fidl::internal::UnionMemberView<2, Storage_> system_time ()
::fidl::internal::UnionMemberView<2, Storage_> system_time ()
RealOrStreamTime & system_time (int64_t value)

Real time according to the system monotonic clock.

RealOrStreamTime WithReferenceTime (int64_t val)
const ::fidl::internal::UnionMemberView<3, Storage_> reference_time ()
::fidl::internal::UnionMemberView<3, Storage_> reference_time ()
RealOrStreamTime & reference_time (int64_t value)

Real time according to the relevant reference clock. If no reference

clock (other than the system clock) is relevant, this is equivalent to

`system_time`.

RealOrStreamTime WithStreamTime (int64_t val)
const ::fidl::internal::UnionMemberView<4, Storage_> stream_time ()
::fidl::internal::UnionMemberView<4, Storage_> stream_time ()
RealOrStreamTime & stream_time (int64_t value)

Stream time expressed as a duration (nanoseconds).

RealOrStreamTime WithPacketTimestamp (int64_t val)
const ::fidl::internal::UnionMemberView<5, Storage_> packet_timestamp ()
::fidl::internal::UnionMemberView<5, Storage_> packet_timestamp ()
RealOrStreamTime & packet_timestamp (int64_t value)

Stream time expressed in the same timestamps that are used on the

relevant packets.

void RealOrStreamTime (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Enumerations

enum Tag
Name Value
kAsap 1
kSystemTime 2
kReferenceTime 3
kStreamTime 4
kPacketTimestamp 5
_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 314 of file fidling/gen/sdk/fidl/fuchsia.media2/fuchsia.media2/cpp/fidl/fuchsia.media2/cpp/natural_types.h

Friends

class NaturalUnionCodingTraits