class

Bakelite::Container::Reader

Inherits Reference < Object

Parses standalone .bkl archives or appended executable volumes. Reads the 32-byte trailer at the end of the file, directly loads the file index, and constructs StoredItems that stream chunks from the container file on demand.

Constructors

new(target_path : Path | String)
Source

Class methods

has_trailer?(file_path : Path | String) : Bool

Checks whether the target file contains a valid Bakelite volume trailer.

Source
mount(registry : FS::Registry, archive_path : String | Path, volume_name : Symbol | String | Nil = nil, mount : String | Nil = nil, priority : Int32 = 0) : Volume | Nil

High-level helper to mount volumes from an archive file into a registry.

Source

Instance methods

read

Parses the container and returns all extracted volumes.

Source
target_path
Source
trailer
Source
volumes
Source