TrailingBytes Method
Definition
TrailingBytes(byte[], byte[])
Eradicates trailing byte information (if any) from the specified set of bytes.
public static byte[] TrailingBytes(byte[] bytes, byte[] trailingBytes)
Parameters
bytesbyte[]The byte array to process.
trailingBytesbyte[]The byte array to form the trailing bytes.
Returns
Exceptions
- ArgumentNullException
bytescannot be null - or -trailingBytescannot be null.- ArgumentOutOfRangeException
bytesmust have a length larger than 1.