(text: string)
| 45 | } |
| 46 | |
| 47 | function fromBase64(text: string): Uint8Array { |
| 48 | const binary = atob(text); |
| 49 | const out = new Uint8Array(binary.length); |
| 50 | for (let i = 0; i < binary.length; i++) out[i] = binary.charCodeAt(i); |
| 51 | return out; |
| 52 | } |
| 53 | |
| 54 | function frameOf(event: WorkspaceExecEvent<ExecEncoding>): ExecFrame { |
| 55 | if (event.name === "exit") { |