remove_trailing_zeros

Function remove_trailing_zeros 

Source
pub fn remove_trailing_zeros(data: &mut Vec<u8>) -> Vec<u8> 
Expand description

Removes trailing zeros from a byte vector.

§Arguments

  • &mut Vec<u8> - Mutable reference to the byte vector.

§Returns

  • Vec<u8> - New vector with trailing zeros removed.