TrailingZeros Method
Definition
TrailingZeros(byte[])
Eradicates trailing zero information (if any) from the specified set of bytes.
public static byte[] TrailingZeros(byte[] bytes)
Parameters
Returns
Exceptions
- ArgumentNullException
bytescannot be null.- ArgumentOutOfRangeException
bytesmust have a length larger than 1.