(utf8String: string)
| 55 | * @returns A Uint8Array representing the byte sequence of the input UTF-8 string. |
| 56 | */ |
| 57 | export function utf8StringToBytes(utf8String: string): Uint8Array { |
| 58 | return new TextEncoder().encode(utf8String); |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Converts a Uint8Array of UTF-8 encoded bytes into a string. |
no outgoing calls
no test coverage detected