You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
544 B
TypeScript
15 lines
544 B
TypeScript
/**
|
|
* @name slipEncode
|
|
* Take an array buffer and return back a new array where
|
|
* 0xdb is replaced with 0xdb 0xdd and 0xc0 is replaced with 0xdb 0xdc
|
|
*/
|
|
export declare const slipEncode: (buffer: number[]) => number[];
|
|
/**
|
|
* @name toByteArray
|
|
* Convert a string to a byte array
|
|
*/
|
|
export declare const toByteArray: (str: string) => number[];
|
|
export declare const hexFormatter: (bytes: number[]) => string;
|
|
export declare const toHex: (value: number, size?: number) => string;
|
|
export declare const sleep: (ms: number) => Promise<unknown>;
|