Apache OpenDAL™ - v0.49.13
    Preparing search index...

    Class Reader

    Reader is designed to read data from a given path in an asynchronous manner.

    Index

    Constructors

    Methods

    • Create a readable stream from the underlying reader.

      Parameters

      • Optionaloptions: ReadableOptions<Readable>

      Returns Readable

    • Read bytes from this reader into the given buffer.

      Wait for the promise to settle before accessing the buffer again.

      Parameters

      • buf: Buffer

      Returns Promise<bigint>

    • Read up to maxBytes bytes from the same cursor as read.

      maxBytes must be an integer between 1 and 4294967295. The promise resolves to a writable Buffer, or null at the end of the input.

      Parameters

      • maxBytes: number

      Returns Promise<null | Buffer<ArrayBufferLike>>