Function mles_utils::write_hdr_without_cid
[−]
[src]
pub fn write_hdr_without_cid(len: usize) -> Vec<u8>
Write a valid Mles header with specified length to network byte order without cid.
Example
use mles_utils::{write_hdr_without_cid, read_hdr_len, HDRL, CIDL}; let hdr = write_hdr_without_cid(515); assert_eq!(HDRL-CIDL, hdr.len());