(s: string, encoding = 'utf-8')
| 116 | * @doc {heading: 'Util'} |
| 117 | */ |
| 118 | export function encodeString(s: string, encoding = 'utf-8'): Uint8Array { |
| 119 | encoding = encoding || 'utf-8'; |
| 120 | return env().platform.encode(s, encoding); |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * Decodes the provided bytes into a string using the provided encoding scheme. |
no test coverage detected
searching dependent graphs…