Swap-Aggregator-Subgraph/node_modules/asmcrypto.js/dist_es8/other/utils.d.ts
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

16 lines
1.0 KiB
TypeScript
Executable File

export declare function string_to_bytes(str: string, utf8?: boolean): Uint8Array;
export declare function hex_to_bytes(str: string): Uint8Array;
export declare function base64_to_bytes(str: string): Uint8Array;
export declare function bytes_to_string(bytes: Uint8Array, utf8?: boolean): string;
export declare function bytes_to_hex(arr: Uint8Array): string;
export declare function bytes_to_base64(arr: Uint8Array): string;
export declare function pow2_ceil(a: number): number;
export declare function is_number(a: number): boolean;
export declare function is_string(a: string): boolean;
export declare function is_buffer(a: ArrayBuffer): boolean;
export declare function is_bytes(a: Uint8Array): boolean;
export declare function is_typed_array(a: any): boolean;
export declare function _heap_init(heap?: Uint8Array, heapSize?: number): Uint8Array;
export declare function _heap_write(heap: Uint8Array, hpos: number, data: Uint8Array, dpos: number, dlen: number): number;
export declare function joinBytes(...arg: Uint8Array[]): Uint8Array;