Show / Hide Table of Contents

Class Eradicate

Provides a set of static methods for eradicating different types of values or sequences of values.

Inheritance
Object
Eradicate
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class Eradicate

Methods

| Improve this Doc View Source

TrailingBytes(Byte[], Byte[])

Eradicates trailing byte information (if any) from the specified set of bytes.

Declaration
public static byte[] TrailingBytes(byte[] bytes, byte[] trailingBytes)
Parameters
Type Name Description
Byte[] bytes

The byte[] to process.

Byte[] trailingBytes

The byte[] to form the trailing bytes.

Returns
Type Description
Byte[]

A byte[] without trailingBytes.

Exceptions
Type Condition
ArgumentNullException

bytes cannot be null - or - trailingBytes cannot be null.

ArgumentOutOfRangeException

bytes must have a length larger than 1.

| Improve this Doc View Source

TrailingZeros(Byte[])

Eradicates trailing zero information (if any) from the specified set of bytes.

Declaration
public static byte[] TrailingZeros(byte[] bytes)
Parameters
Type Name Description
Byte[] bytes

The byte[] to process.

Returns
Type Description
Byte[]

A byte[] without trailing zeros.

Exceptions
Type Condition
ArgumentNullException

bytes cannot be null.

ArgumentOutOfRangeException

bytes must have a length larger than 1.

See Also

Generate
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright 2008-2022 Geekle. All rights reserved. Code with passion and love; deploy with confidence. 👨‍💻️🔥❤️🚀😎
Generated by DocFX