[][src]Function cookie_factory::skip

pub fn skip<'a>(len: usize) -> impl SerializeFn<&'a mut [u8]>

skips over some input bytes

use cookie_factory::{length, skip};

let mut buf = [0u8; 100];

let out = skip(2)(&mut buf).unwrap();

assert_eq!(out.len(), 98);