Class ByteUtility
This utility class is designed to make common System.
Inheritance
System.Object
ByteUtility
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class ByteUtility
Methods
| Improve this DocCombineByteArrays(Byte[][])
Combines a variable number of byte arrays into one byte array.
Declaration
public static byte[] CombineByteArrays(params byte[][] bytes)
Parameters
Type | Name | Description |
---|---|---|
System. |
bytes | The byte arrays to combine. |
Returns
Type | Description |
---|---|
System. |
A variable number of byte arrays combined into one byte array. |
RemovePreamble(Byte[], Encoding)
Removes the preamble information (if present) from the specified System.
Declaration
public static byte[] RemovePreamble(byte[] input, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
System. |
input | The input System. |
System. |
encoding | The encoding to use when determining the preamble to remove. |
Returns
Type | Description |
---|---|
System. |
A System. |
RemoveTrailingZeros(Byte[])
Removes trailing zero information (if any) from the specified System.
Declaration
public static byte[] RemoveTrailingZeros(byte[] input)
Parameters
Type | Name | Description |
---|---|---|
System. |
input | The input System. |
Returns
Type | Description |
---|---|
System. |
A System. |