@haxall/haxall
    Preparing search index...

    Function writeSync

    • For detailed information, see the documentation of the asynchronous version of this API: write.

      Parameters

      • fd: number
      • buffer: ArrayBufferView
      • Optionaloffset: number
      • Optionallength: number
      • Optionalposition: number

      Returns number

      The number of bytes written.

      v0.1.21

    • Synchronously writes string to the file referenced by the supplied file descriptor, returning the number of bytes written.

      Parameters

      • fd: number

        A file descriptor.

      • string: string

        A string to write.

      • Optionalposition: number

        The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.

      • Optionalencoding: BufferEncoding

        The expected string encoding.

      Returns number