Class ByteUtilityExtensions
This is an extension implementation of the most common methods on the ByteUtility class.
Inheritance
System.Object
ByteUtilityExtensions
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class ByteUtilityExtensions
Methods
| Improve this DocRemovePreamble(Byte[], Encoding)
Removes the preamble information (if present) from the specified System.Byte array.
Declaration
public static byte[] RemovePreamble(this byte[] input, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | input | The input System.Byte array to process. |
System.Text.Encoding | encoding | The encoding to use when determining the preamble to remove. |
Returns
Type | Description |
---|---|
System.Byte[] | A System.Byte array without preamble information. |
RemoveTrailingZeros(Byte[])
Removes trailing zero information (if any) from the specified System.Byte array.
Declaration
public static byte[] RemoveTrailingZeros(this byte[] input)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | input | The input System.Byte array to process. |
Returns
Type | Description |
---|---|
System.Byte[] | A System.Byte array without trailing zeros. |