Function mles_utils::write_cid [] [src]

pub fn write_cid(cid: u32) -> Vec<u8>

Write a random connection id in network byte order.

Example

use mles_utils::{write_cid, select_cid, CIDL};

let cidv = write_cid(select_cid());
assert_eq!(CIDL, cidv.len());