pub fn apply_flags_batch(envelopes: &mut [Envelope], flags: u32)
Apply a bitmask to a batch of envelopes in-place.