Skip to content

hexDataLength

hexDataLength(data): number | null

Defined in: utils/bytes.ts:481

Gets the length of data represented as a hex string

Parameters

data

BytesLike

the data to check the length of

Returns

number | null

the length of the data

Examples

hexDataLength([2, 4, 0, 1]);
// 4
hexDataLength('0x3925');
// 2