(chunks: string[])
| 498 | * @returns An array of decoded lines. |
| 499 | */ |
| 500 | export function _decodeChunks(chunks: string[]): string[] { |
| 501 | const decoder = new LineDecoder(); |
| 502 | const lines: string[] = []; |
| 503 | for (const chunk of chunks) { |
| 504 | lines.push(...decoder.decode(chunk)); |
| 505 | } |
| 506 | |
| 507 | return lines; |
| 508 | } |
| 509 | |
| 510 | function partition(str: string, delimiter: string): [string, string, string] { |
| 511 | const index = str.indexOf(delimiter); |