Table of Contents

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

bytes Byte[]

The byte[] to process.

trailingBytes Byte[]

The byte[] to form the trailing bytes.

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.

See Also