Function writeAsync

  • Write data to a file.

    Type Parameters

    • B extends ArrayBufferView

    Parameters

    • fd: number

      file descriptor

    • buffer: B

      input buffer

    • Optional offset: number

      buffer offset [0]

    • Optional length: number

      write length [buffer.length - offset]

    • Optional position: number

      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