Skip to content

writeSync

writeSync(this, fd, data, offset?, length?, position?): number

Defined in: src/node/sync.ts:286

Write buffer to the file specified by fd.

unknown

number

ArrayBufferView

Uint8Array containing the data to write to the file.

number | null

Offset in the buffer to start reading data from.

number | null

The amount of bytes to write to the file.

number | null

Offset from the beginning of the file where this data should be written. If position is null, the data will be written at the current position.

number

writeSync(this, fd, data, position?, encoding?): number

Defined in: src/node/sync.ts:294

Write buffer to the file specified by fd.

unknown

number

string

Uint8Array containing the data to write to the file.

number | null

Offset from the beginning of the file where this data should be written. If position is null, the data will be written at the current position.

BufferEncoding | null

number