Skip to main content
FileHandle.readv - fs/promises - Node documentation
method FileHandle.readv

Usage in Deno

import { type FileHandle } from "node:fs/promises";
FileHandle.readv(
buffers: readonly ArrayBufferView[],
position?: number,
): Promise<ReadVResult>

Read from a file and write to an array of ArrayBufferView s

Parameters

buffers: readonly ArrayBufferView[]
optional
position: number = 'null'

The offset from the beginning of the file where the data should be read from. If position is not a number, the data will be read from the current position.

Return Type

Promise<ReadVResult>

Fulfills upon success an object containing two properties: