Skip to content

Readv

[<Interface>]
type Readv =
    abstract member Invoke<'TBuffers> (fd: float, buffers: 'TBuffers, position: float option, cb: Cb2<'TBuffers>) : unit
    abstract member Invoke<'TBuffers> (fd: float, buffers: 'TBuffers, cb: Cb<'TBuffers>) : unit
    abstract member __promisify__<'TBuffers> (fd: float, buffers: 'TBuffers, ?position: float) : Promise<ReadVResult<'TBuffers>>
AssemblyXantham.Fable.Node

Declared inside

Cb
Cb2

Methods

abstract member Invoke<'TBuffers> (fd: float, buffers: 'TBuffers, position: float option, cb: Cb2<'TBuffers>) : unit

Read from a file specified by fd and write to an array of ArrayBufferViews using readv().

position is the offset from the beginning of the file from where data should be read. If typeof position !== 'number', the data will be read from the current position.

The callback will be given three arguments: err, bytesRead, and buffers. bytesRead is how many bytes were read from the file.

If this method is invoked as its util.promisify() ed version, it returns a promise for an Object with bytesRead and buffers properties.

@since v13.13.0, v12.17.0

abstract member Invoke<'TBuffers> (fd: float, buffers: 'TBuffers, cb: Cb<'TBuffers>) : unit

Read from a file specified by fd and write to an array of ArrayBufferViews using readv().

position is the offset from the beginning of the file from where data should be read. If typeof position !== 'number', the data will be read from the current position.

The callback will be given three arguments: err, bytesRead, and buffers. bytesRead is how many bytes were read from the file.

If this method is invoked as its util.promisify() ed version, it returns a promise for an Object with bytesRead and buffers properties.

@since v13.13.0, v12.17.0

abstract member __promisify__<'TBuffers> (fd: float, buffers: 'TBuffers, ?position: float) : Promise<ReadVResult<'TBuffers>>