(fd, buffers, position)
| 381 | fdatasyncSync: noopFdSync, |
| 382 | fsyncSync: noopFdSync, |
| 383 | readvSync(fd, buffers, position) { |
| 384 | const vfd = getVirtualFd(fd); |
| 385 | if (!vfd) return undefined; |
| 386 | let totalRead = 0; |
| 387 | for (let i = 0; i < buffers.length; i++) { |
| 388 | const buf = buffers[i]; |
| 389 | const pos = position != null ? position + totalRead : position; |
| 390 | const bytesRead = vfd.entry.readSync(buf, 0, buf.byteLength, pos); |
| 391 | totalRead += bytesRead; |
| 392 | if (bytesRead < buf.byteLength) break; |
| 393 | } |
| 394 | return totalRead; |
| 395 | }, |
| 396 | writevSync(fd, buffers, position) { |
| 397 | const vfd = getVirtualFd(fd); |
| 398 | if (!vfd) return undefined; |
nothing calls this directly
no test coverage detected