mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-07-22 02:45:42 +00:00
chore: update to version 14.0.11 and align website URLs
This commit is contained in:
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @name numberToU8a
|
||||
* @summary Creates a Uint8Array object from a number.
|
||||
* @description
|
||||
* `null`/`undefined`/`NaN` inputs returns an empty `Uint8Array` result. `number` input values return the actual bytes value converted to a `Uint8Array`. With `bitLength`, it converts the value to the equivalent size.
|
||||
* @example
|
||||
* <BR>
|
||||
*
|
||||
* ```javascript
|
||||
* import { numberToU8a } from '@pezkuwi/util';
|
||||
*
|
||||
* numberToU8a(0x1234); // => [0x12, 0x34]
|
||||
* ```
|
||||
*/
|
||||
export declare function numberToU8a(value?: number | null, bitLength?: number): Uint8Array;
|
||||
Reference in New Issue
Block a user