-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
36 lines (36 loc) · 1.04 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* Convert hexadecimal string to number array
*
* @param {string} hexString hexadeciaml string to be converted
*/
export declare function hexToArray(hexString: string): number[];
/**
* Convert number or number array to hexadecimal string
*
* @param {number|number[]} input number or number array to be converted
*/
export declare function toHex(input: number | number[]): string;
/**
* convert number array to hexadecimal string
*
* @param {number[]} arr number array to be converted
*/
export declare function arrayToHex(arr: number[]): string;
/**
* Convert number to hexadecimal string
*
* @param {number} num number to be converted
*/
export declare function numberToHex(num: number): string;
/**
* Convert hexadecimal string to signed number
*
* @param {string} hex hexadecimal string to be converted
*/
export declare function hexToSignedNumber(hex: string): number;
/**
* Convert hexadecimal string to number
*
* @param {string} hex hexadecimal string to be converted
*/
export declare function hexToNumber(hex: string): number;