tar
    Preparing search index...

    Class TarReader

    Reads the entries of an archive from async input. It is the iterator that entries() returns.

    Input is read only when the consumer asks for the next entry or for more of a body. poll() and fill() do the same work as next(), with no promise for an entry that is in memory.

    Implements

    Index

    Constructors

    Properties

    parser: Parser<ReadEntry>

    Methods

    • Returns this

    • Read one chunk of input, and give it to the parser.

      Returns Promise<void>

    • The next entry, if it is in memory. null at the end of the archive. undefined if more input is needed: then await fill() and call this again.

      Returns ReadEntry | null | undefined

    • The next part of the body of entry. null at the end of the body. undefined if more input is needed: then await fill() and call this again. Throws if the source moved to a later entry.

      Parameters

      Returns Uint8Array<ArrayBufferLike> | null | undefined

    • Stop reading, and release the input.

      Returns Promise<IteratorResult<ReadEntry, undefined>>