@obsidize/tar-browserify
    Preparing search index...

    Class UstarHeader

    Facade over a backing Uint8Array buffer to consume/edit header data at a specific location in the buffer.

    Does not perform any mutations or reads on creation, and lazy loads/sets data via getters and setters.

    Implements

    Index

    Constructors

    Accessors

    Methods

    • Parses out a UstarHeader instance from the given input buffer, at the given offset. The given offset must be a multiple of SECTOR_SIZE.

      If the sector at the given offset is not marked with a ustar indicator, this will return null.

      Parameters

      • input: Uint8Array
      • offset: number = 0

      Returns null | UstarHeader