(s: string)
| 22 | |
| 23 | // convert "bytestring" (charCode 0-255) to bytes |
| 24 | function fromByteString(s: string): Uint8Array { |
| 25 | const result = new Uint8Array(s.length); |
| 26 | for (let i = 0; i < s.length; ++i) { |
| 27 | result[i] = s.charCodeAt(i); |
| 28 | } |
| 29 | return result; |
| 30 | } |
| 31 | |
| 32 | const BATCH_SIZE = 2048; |
| 33 |