class
Bakelite::Container::Reader
- Bakelite::Container::Reader
- Reference
- Object
Overview
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.
Defined in:
bakelite/container/reader.crConstructors
Class Method Summary
-
.has_trailer?(file_path : Path | String) : Bool
Checks whether the target file contains a valid Bakelite volume trailer.
-
.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.
Instance Method Summary
-
#read : Array(Volume)
Parses the container and returns all extracted volumes.
- #target_path : Path
- #trailer : Trailer | Nil
- #volumes : Array(Volume)
Constructor Detail
Class Method Detail
def self.has_trailer?(file_path : Path | String) : Bool
#
Checks whether the target file contains a valid Bakelite volume trailer.
def self.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.