(bytes: Uint8Array)
| 65 | * @returns The decoded UTF-8 string. |
| 66 | */ |
| 67 | export function bytesToUtf8String(bytes: Uint8Array): string { |
| 68 | return new TextDecoder().decode(bytes); |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Checks whether a Uint8Array contains the UTF-8 byte sequence of a given |