convertBytesToHex(options: ConvertBytesToHexOptions) => { hex: string; }Convert a byte array to a hex string.
| Param | Type |
|---|---|
options |
ConvertBytesToHexOptions |
Returns: { hex: string; }
Since: 6.0.0
convertHexToBytes(options: ConvertHexToBytesOptions) => { bytes: number[]; }Convert a hex string to a byte array.
| Param | Type |
|---|---|
options |
ConvertHexToBytesOptions |
Returns: { bytes: number[]; }
Since: 6.0.0
| Prop | Type | Description | Default | Since |
|---|---|---|---|---|
bytes |
number[] |
The byte array to convert to a hex string. | 6.0.0 | |
start |
string |
The text to prepend to the hex string. | '0x' |
6.0.0 |
separator |
string |
The separator to use between each byte. | '' |
6.0.0 |
| Prop | Type | Description | Default | Since |
|---|---|---|---|---|
hex |
string |
The hex string to convert to a byte array. | 6.0.0 | |
start |
string |
The text to remove from the beginning of the hex string. | '0x' |
6.0.0 |
separator |
string |
The separator which is used between each byte. | '' |
6.0.0 |