(arr: Uint8Array)
| 20 | } |
| 21 | |
| 22 | export function uint8ArrayToString(arr: Uint8Array) { |
| 23 | const decoder = new TextDecoder(); |
| 24 | return decoder.decode(arr); |
| 25 | } |
| 26 | |
| 27 | export function booleanToUint8Array(bool: boolean) { |
| 28 | return new Uint8Array([bool ? 1 : 0]); |
no test coverage detected