Function pad_bytes

Source
pub fn pad_bytes(data: Vec<u8>, padding: Padding) -> Vec<u8> 
Expand description

Pad the data to be word aligned.

Note it’s cheaper to use align_to_word if the data might already be word aligned.