ArReader

Unix ar reader (.a / .deb / .lib). No compression: concatenated members with 60-byte ASCII headers. Handles GNU trailing-slash short names and the GNU // long-name table (/offset references); BSD #1/len long names are TODO. The GNU symbol table (/) and the name table (//) are skipped as entries.

Constructors

Link copied to clipboard
constructor(source: RandomAccessSource)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val format: ArchiveFormat

The container format this reader handles.

Functions

Link copied to clipboard
open fun close()

Release the underlying source.

Link copied to clipboard
open override fun entries(): List<ArchiveEntry>

List members from the header/directory only.

Link copied to clipboard
open override fun read(entry: ArchiveEntry, limits: ArchiveLimits = ArchiveLimits.DEFAULT): ByteArray

Read one entry's uncompressed bytes, enforcing limits.