(text: string)
| 16 | } |
| 17 | |
| 18 | function fromBase64(text: string): Uint8Array { |
| 19 | const binary = atob(text); |
| 20 | const bytes = new Uint8Array(binary.length); |
| 21 | for (let index = 0; index < binary.length; index++) bytes[index] = binary.charCodeAt(index); |
| 22 | return bytes; |
| 23 | } |
| 24 | |
| 25 | export function encodeRuntimeEvent(event: WorkspaceRuntimeEvent<ExecEncoding>): Uint8Array { |
| 26 | let frame: RuntimeFrame; |