(bytes: Uint8Array)
| 9 | } |
| 10 | |
| 11 | export function utf8StringFromBytes(bytes: Uint8Array): string { |
| 12 | return new TextDecoder().decode(bytes); |
| 13 | } |
| 14 | |
| 15 | export function latin1BytesFromString(value: string): Uint8Array { |
| 16 | const bytes = new Uint8Array(value.length); |
no outgoing calls
no test coverage detected