(chunks, options)
| 575 | } |
| 576 | |
| 577 | writev(chunks, options) { |
| 578 | if (!ArrayIsArray(chunks)) { |
| 579 | throw new ERR_INVALID_ARG_TYPE('chunks', 'Array', chunks); |
| 580 | } |
| 581 | if (!options?.signal && this.#queue.canWriteSync()) { |
| 582 | const bytes = convertChunks(chunks); |
| 583 | this.#queue.writeSync(bytes); |
| 584 | return kResolvedPromise; |
| 585 | } |
| 586 | const bytes = convertChunks(chunks); |
| 587 | return this.#queue.writeAsync(bytes, options?.signal); |
| 588 | } |
| 589 | |
| 590 | writeSync(chunk) { |
| 591 | const bytes = toUint8Array(chunk); |
no test coverage detected