ZenFS
    Preparing search index...

    Function write

    • Write buffer to the file specified by fd. Note that it is unsafe to use fs.write multiple times on the same file without waiting for the callback.

      Parameters

      • this: V_Context
      • fd: number
      • buffer: Uint8Array

        Uint8Array containing the data to write to the file.

      • offset: number

        Offset in the buffer to start reading data from.

      • length: number

        The amount of bytes to write to the file.

      • Optionalcb: Callback<[number, Uint8Array<ArrayBufferLike>]>

        The number specifies the number of bytes written into the file.

      Returns void

    • Write buffer to the file specified by fd. Note that it is unsafe to use fs.write multiple times on the same file without waiting for the callback.

      Parameters

      • this: V_Context
      • fd: number
      • buffer: Uint8Array

        Uint8Array containing the data to write to the file.

      • offset: number

        Offset in the buffer to start reading data from.

      • length: number

        The amount of bytes to write to the file.

      • Optionalposition: number

        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.

      • Optionalcb: Callback<[number, Uint8Array<ArrayBufferLike>]>

        The number specifies the number of bytes written into the file.

      Returns void

    • Write buffer to the file specified by fd. Note that it is unsafe to use fs.write multiple times on the same file without waiting for the callback.

      Parameters

      • this: V_Context
      • fd: number
      • data: FileContents
      • Optionalcb: Callback<[number, string]>

        The number specifies the number of bytes written into the file.

      Returns void

    • Write buffer to the file specified by fd. Note that it is unsafe to use fs.write multiple times on the same file without waiting for the callback.

      Parameters

      • this: V_Context
      • fd: number
      • data: FileContents
      • Optionalposition: number

        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.

      • Optionalcb: Callback<[number, string]>

        The number specifies the number of bytes written into the file.

      Returns void

    • Write buffer to the file specified by fd. Note that it is unsafe to use fs.write multiple times on the same file without waiting for the callback.

      Parameters

      • this: V_Context
      • fd: number
      • data: FileContents
      • position: null | number

        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.

      • encoding: BufferEncoding
      • Optionalcb: Callback<[number, string]>

        The number specifies the number of bytes written into the file.

      Returns void