(input: string)
| 7 | import { WorkerParameters, WorkerResponse } from '../../types'; |
| 8 | |
| 9 | export function encodeUtf8(input: string) { |
| 10 | return new TextEncoder().encode(input) as Uint8ArrayBlobAdapter; |
| 11 | } |
| 12 | |
| 13 | export function decodeUtf8(input: Uint8Array): string { |
| 14 | return new TextDecoder('utf-8').decode(input); |
no outgoing calls
no test coverage detected