Table of Contents

TrailingBytes Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Eradicate.cs

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 array to process.

trailingBytes byte[]

The byte array to form the trailing bytes.

Returns

byte[]

A byte array without trailingBytes.

Exceptions

ArgumentNullException

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

ArgumentOutOfRangeException

bytes must have a length larger than 1.