Function write

  • Write data to a file.

    Type Parameters

    • B extends ArrayBufferView

    Parameters

    • fd: number

      file descriptor

    • buffer: B

      input buffer

    • callback: WriteCallback<B>

      callback (err, bytesWritten, buffer)

    Returns void

  • Write data to a file.

    Type Parameters

    • B extends ArrayBufferView

    Parameters

    • fd: number

      file descriptor

    • buffer: B

      input buffer

    • offset: number

      buffer offset [0]

    • callback: WriteCallback<B>

      callback (err, bytesWritten, buffer)

    Returns void

  • Write data to a file.

    Type Parameters

    • B extends ArrayBufferView

    Parameters

    • fd: number

      file descriptor

    • buffer: B

      input buffer

    • offset: number

      buffer offset [0]

    • length: number

      read length [buffer.length - offset]

    • callback: WriteCallback<B>

      callback (err, bytesWritten, buffer)

    Returns void

  • Write data to a file.

    Type Parameters

    • B extends ArrayBufferView

    Parameters

    • fd: number

      file descriptor

    • buffer: B

      input buffer

    • offset: number

      buffer offset [0]

    • length: number

      read length [buffer.length - offset]

    • position: ReadPosition

      file position [null ⇒ current]

    • callback: WriteCallback<B>

      callback (err, bytesWritten, buffer)

    Returns void

  • Write data to a file.

    Parameters

    • fd: number

      file descriptor

    • buffer: string

      string data

    • callback: WriteCallback<string>

      callback (err, bytesWritten, buffer)

    Returns void

  • Write data to a file.

    Parameters

    • fd: number

      file descriptor

    • buffer: string

      string data

    • position: number

      file position [null ⇒ current]

    • callback: WriteCallback<string>

      callback (err, bytesWritten, buffer)

    Returns void

  • Write data to a file.

    Parameters

    • fd: number

      file descriptor

    • buffer: string

      string data

    • position: number

      file position [null ⇒ current]

    • encoding: BufferEncoding

      string encoding [utf8]

    • callback: WriteCallback<string>

      callback (err, bytesWritten, buffer)

    Returns void

  • Write data to a file.

    Type Parameters

    • B extends ArrayBufferView

    Parameters

    • fd: number

      file descriptor

    • buffer: B

      input buffer

    • offset: number

      buffer offset [0]

    • length: number

      read length [buffer.length - offset]

    • position: ReadPosition

      file position [null ⇒ current]

    Returns Promise<WriteResult<B>>

    write status {bytesWritten, buffer}

  • Write data to a file.

    Parameters

    • fd: number

      file descriptor

    • buffer: string

      string data

    • Optional position: number

      file position [null ⇒ current]

    • Optional encoding: BufferEncoding

      string encoding [utf8]

    Returns Promise<WriteResult<string>>

    write status {bytesWritten, buffer}

Generated using TypeDoc