(archive, position)
| 84 | } |
| 85 | |
| 86 | function readString(archive, position) { |
| 87 | let result = ""; |
| 88 | while (true) { |
| 89 | let bytes = new Uint8Array(archive.read(position++, 1)); |
| 90 | if (0 == bytes[0]) |
| 91 | break; |
| 92 | result += String.fromCharCode(bytes[0]); |
| 93 | } |
| 94 | return result; |
| 95 | } |
no test coverage detected