Class ByteUtil
Utility methods to deal with
Inheritance
Namespace: Libplanet
Assembly: Libplanet.dll
Syntax
public static class ByteUtil : object
Methods
| Improve this Doc View SourceCalculateHashCode(Byte[])
Calculates a deterministic hash code from a given
bytes
. It is mostly used to implement
Declaration
public static int CalculateHashCode(byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | bytes | A |
Returns
Type | Description |
---|---|
System.Int32 | A hash code determined from the given
|
Hex(Byte[])
Renders a hexadecimal string from a
Declaration
public static string Hex(byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | bytes | A |
Returns
Type | Description |
---|---|
System.String | A hexadecimal string which encodes the given
|
ParseHex(String)
Converts a hexadecimal string to a
Declaration
public static byte[] ParseHex(string hex)
Parameters
Type | Name | Description |
---|---|---|
System.String | hex | A |
Returns
Type | Description |
---|---|
System.Byte[] | A |