Function

Dex-1Dexaio_read

  • An asynchronous pread() wrapper.

    Generally you want to provide NULL for the aio_context as that will get the default aio context for your scheduler.

    Parameters

    • aio_context: AioContext
    • fd: number
    • offset: number | bigint

      the positioned offset within fd to read from

    Returns [Dex.Future, Uint8Array<ArrayBufferLike>]

    a future that will resolve when the read completes or rejects with error.