(utf8String: string)
| 48 | * @returns A Uint8Array representing the byte sequence of the input UTF-8 string. |
| 49 | */ |
| 50 | export function utf8StringToBytes(utf8String: string): Uint8Array { |
| 51 | return new TextEncoder().encode(utf8String); |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Converts a Uint8Array of UTF-8 encoded bytes into a string. |
no outgoing calls
no test coverage detected