ZenFS
    Preparing search index...

    Function writeSync

    • Write buffer to the file specified by fd.

      Parameters

      • this: unknown
      • fd: number
      • data: ArrayBufferView

        Uint8Array containing the data to write to the file.

      • Optionaloffset: number | null

        Offset in the buffer to start reading data from.

      • Optionallength: number | null

        The amount of bytes to write to the file.

      • Optionalposition: 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.

      Returns number

    • Write buffer to the file specified by fd.

      Parameters

      • this: unknown
      • fd: number
      • data: string

        Uint8Array containing the data to write to the file.

      • Optionalposition: 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.

      • Optionalencoding: BufferEncoding | null

      Returns number