Function websocket::ws::util::mask::mask_data [-] [+] [src]

pub fn mask_data(key: [u8; 4], buf: &[u8]) -> Vec<u8>

Masks data to send to a server