(buf: ArrayBuffer)
| 380 | output.img = {url, description}; |
| 381 | } |
| 382 | function decodeText(buf: ArrayBuffer) { |
| 383 | let str = new TextDecoder().decode(buf); |
| 384 | if (str.startsWith("\u0000")) { |
| 385 | str = str.slice(1, str.length); |
| 386 | } |
| 387 | if (str.endsWith("\u0000")) { |
| 388 | str = str.slice(0, str.length - 1); |
| 389 | } |
| 390 | return str; |
| 391 | } |
| 392 | const mapmap = { |
| 393 | TT2: "title", |
| 394 | TP1: "artist", |
nothing calls this directly
no outgoing calls
no test coverage detected