Convert a byte array into a hexadecimal string.
Namespace:
Classless.Hasher.UtilitiesAssembly: Classless.Hasher (in Classless.Hasher.dll) Version: 0.8.3649.33599
Syntax
C# |
---|
public static string ByteToHexadecimal( byte[] array, int offset, int length ) |
Visual Basic (Declaration) |
---|
Public Shared Function ByteToHexadecimal ( _ array As Byte(), _ offset As Integer, _ length As Integer _ ) As String |
Visual C++ |
---|
public: static String^ ByteToHexadecimal( array<unsigned char>^ array, int offset, int length ) |
Parameters
- array
- Type: array<
System..::.Byte
>[]()[]
The byte array to convert.
- offset
- Type: System..::.Int32
Position in the array to begin the conversion.
- length
- Type: System..::.Int32
How many bytes in the array to convert.
Return Value
A string containing the hexadecimal equivelent of the byte array.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentException | When the range specified for the array is invalid. |
System..::.ArgumentOutOfRangeException | When the length specified is longer than this implementation supports. |