Skip to main content

payload_mask

Function payload_mask 

Source
fn payload_mask(len: usize) -> u64
Expand description

Mask covering the low len bytes of a word.

len reaches eight for a 64-bit value that needs every byte, where a shift of 64 would be undefined, so that case saturates instead.