• Type Parameters

    Parameters

    • fd: number

      A file descriptor.

    • buffer: TBuffer

      The buffer that the data will be written to.

    • offset: number

      The offset in the buffer at which to start writing.

    • length: number

      The number of bytes to read.

    • position: null | number

      The offset from the beginning of the file from which data should be read. If null, data will be read from the current position.

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

  • Type Parameters

    Parameters

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

  • Parameters

    • fd: number

    Returns Promise<{
        buffer: ArrayBufferView;
        bytesRead: number;
    }>