Skip to main content

stamp_into

Function stamp_into 

Source
pub fn stamp_into(buf: &mut BytesMut, scenario_id: u64) -> Bytes
Expand description

Stamps the magic, the scenario_id, and the current unix_nanos into the first 24 bytes of buf. Returns the value as a Bytes, which the caller clones cheaply with a BytesMut::freeze-style copy.