Skip to main content

encode_timestamp

Function encode_timestamp 

Source
pub fn encode_timestamp(ts: Timestamp) -> [u8; 8]
Expand description

Encodes a Timestamp for lexicographic ordering.

Timestamps are u64 nanoseconds, which are naturally ordered when stored as big-endian bytes.