pub fn apply_mask(mask: [u8; 4], payload_chunk: &mut [u8], phase: u8)
Expand description
Apply WebSocket masking to the giben block of data.
phase
is a number from 0 to 3, meaning zeroeth byte a payload_chunk
should be
masked with phase
’s byte of mask
.
Crate features unoptimised_maskin
, explicitly_aligned_masking
and masking_slice_size_{4,8,16,32}
affect implementation of this function.