Skip to main content

encode_value

Function encode_value 

Source
pub fn encode_value(
    tag: VersionTag,
    valid_from_ms: i64,
    valid_until_ms: i64,
    body: &[u8],
) -> Vec<u8> ⓘ
Expand description

Encode a versioned value payload.

The tag byte and both temporal bounds are written as a fixed 17-byte header followed by the raw body bytes.