Function readSync

  • Returns the number of bytesRead.

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

    Since

    v0.0.67

    Parameters

    • fd: number
    • buffer: ArrayBufferView
    • offset: number
    • length: number
    • position: "fs".ReadPosition

    Returns number

  • Similar to the above fs.readSync function, this version takes an optional options object. If no options object is specified, it will default with the above values.

    Parameters

    Returns number

  • Returns the number of bytesRead.

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

    Since

    v0.0.67

    Parameters

    • fd: number
    • buffer: ArrayBufferView
    • offset: number
    • length: number
    • position: "fs".ReadPosition

    Returns number

  • Similar to the above fs.readSync function, this version takes an optional options object. If no options object is specified, it will default with the above values.

    Parameters

    Returns number

Generated using TypeDoc