(b64: string)
| 107 | * @param b64 |
| 108 | */ |
| 109 | export const decode = (b64: string): Uint8Array => { |
| 110 | const binString = atob(b64) |
| 111 | const size = binString.length |
| 112 | const bytes = new Uint8Array(size) |
| 113 | for (let i = 0; i < size; i++) { |
| 114 | bytes[i] = binString.charCodeAt(i) |
| 115 | } |
| 116 | return bytes |
| 117 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…