@haxall/haxall
    Preparing search index...

    Function __promisify__

    • Asynchronously writes buffer to the file referenced by the supplied file descriptor.

      Type Parameters

      • TBuffer extends ArrayBufferView<ArrayBufferLike>

      Parameters

      • fd: number

        A file descriptor.

      • Optionalbuffer: TBuffer
      • Optionaloffset: number

        The part of the buffer to be written. If not supplied, defaults to 0.

      • Optionallength: number

        The number of bytes to write. If not supplied, defaults to buffer.length - offset.

      • Optionalposition: number

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

      Returns Promise<{ buffer: TBuffer; bytesWritten: number }>

    • Asynchronously writes buffer to the file referenced by the supplied file descriptor.

      Type Parameters

      • TBuffer extends ArrayBufferView<ArrayBufferLike>

      Parameters

      • fd: number

        A file descriptor.

      • Optionalbuffer: TBuffer
      • Optionaloptions: WriteOptions

        An object with the following properties:

        • offset The part of the buffer to be written. If not supplied, defaults to 0.
        • length The number of bytes to write. If not supplied, defaults to buffer.length - offset.
        • position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.

      Returns Promise<{ buffer: TBuffer; bytesWritten: number }>

    • Asynchronously writes string to the file referenced by the supplied file descriptor.

      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 Promise<{ buffer: string; bytesWritten: number }>