Function: fromLittleEndian
Utils.fromLittleEndian
▸ fromLittleEndian(littleEndian
, pad?
): HexString
| never
Convert little-endian hex or number to big-endian Note: Before conversion it is automatically padded to even length hexstring
Parameters
Name | Type | Default value | Description |
---|---|---|---|
littleEndian | string | number | HexString <number > | undefined | Little-endian hex string or number to convert |
pad | number | 2 | Length to which the string should be padded before conversion (defaul: 2) |
Returns
HexString
| never
big-endian encoded hexstring