Class ConversionHelper
Contains helper methods for converting things.
Inherited Members
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public static class ConversionHelper
Methods
| Edit this page View SourceHexToBytes(ReadOnlySpan<char>)
Converts the HEX-representation of a byte array to that array.
Declaration
public static byte[] HexToBytes(ReadOnlySpan<char> hexString)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<char> | hexString | The HEX-string to convert. |
Returns
Type | Description |
---|---|
byte[] | The correspondending byte array. |
ToHex(params byte[])
Converts an array of bytes to a HEX-representation.
Declaration
public static string ToHex(params byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
byte[] | bytes | The array of bytes. |
Returns
Type | Description |
---|---|
string | The HEX-representation of the provided bytes. |