Function xdr_codec::padding [] [src]

pub fn padding(sz: usize) -> &'static [u8]

Compute XDR padding.

Return slice of zero padding needed to bring sz up to a multiple of 4. If no padding is needed, it will be a zero-sized slice.