Timestamp class

A zenoh timestamp: a 24-byte z_timestamp_t value.

Wraps the raw 24 bytes of the native timestamp verbatim (no decomposition), so a received timestamp is re-sendable bit-exact. The time (NTP64) and id (ZenohId) are accessor views computed from the held bytes.

Annotations
  • @immutable

Constructors

Timestamp.fromRaw(Uint8List raw)
Wraps a raw 24-byte z_timestamp_t image.

Properties

hashCode int
The hash code for this object.
no setteroverride
id ZenohId
The ZenohId of the HLC that produced this timestamp.
no setter
rawBytes Uint8List
The raw 24-byte z_timestamp_t image.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
time int
The NTP64 time as a Dart int carrying the raw unsigned-64 bit-pattern.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override