Class Eradicate
- Namespace
- Cuemon
- Assembly
- Cuemon.Core.dll
Provides a set of static methods for eradicating different types of values or sequences of values.
public static class Eradicate
- Inheritance
-
Eradicate
Methods
TrailingBytes(Byte[], Byte[])
Eradicates trailing byte information (if any) from the specified set of bytes
.
public static byte[] TrailingBytes(byte[] bytes, byte[] trailingBytes)
Parameters
Returns
- Byte[]
A byte[] without
trailingBytes
.
Exceptions
- ArgumentNullException
bytes
cannot be null - or -trailingBytes
cannot be null.- ArgumentOutOfRangeException
bytes
must have a length larger than 1.
TrailingZeros(Byte[])
Eradicates trailing zero information (if any) from the specified set of bytes
.
public static byte[] TrailingZeros(byte[] bytes)
Parameters
bytes
Byte[]The byte[] to process.
Returns
- Byte[]
A byte[] without trailing zeros.
Exceptions
- ArgumentNullException
bytes
cannot be null.- ArgumentOutOfRangeException
bytes
must have a length larger than 1.