class

VirtualFs::PakFormat::Builder

Inherits Reference / Object

Constructors

new(path : String, *, package_id : String = "", chunk_size : Int32 = 262144, key_provider : Crypto::KeyProvider | Nil = nil, cipher : String = "aes-256-gcm")
Source

Instance methods

add(path : String, data : Bytes, *, flags : EntryFlags = EntryFlags::None, codec : Symbol = :none, tags : Array(String) = [] of String, mime : String | Nil = nil, version : String | Nil = nil, attrs : Hash(String, String) = {} of String => String, timestamps : Timestamps = Timestamps.new, mode : UInt32 = 0_u32) : self
Source
add(entry : PakEntry) : self
Source
add_dir(source_dir : String, *, mount_point : String = "", flags : EntryFlags = EntryFlags::None, codec : Symbol = :none) : self
Source
add_file(source_path : String, pak_path : String | Nil = nil, *, flags : EntryFlags = EntryFlags::None, codec : Symbol = :none, tags : Array(String) = [] of String, mime : String | Nil = nil, version : String | Nil = nil, attrs : Hash(String, String) = {} of String => String, mode : UInt32 | Nil = nil) : self
Source
compress(codec : Symbol) : self
Source
encrypt(key_provider : Crypto::KeyProvider, cipher : String = "aes-256-gcm") : self
Source
encrypt(key : Bytes, cipher : String = "aes-256-gcm") : self
Source
entry_count
Source
exclude(*patterns : String) : self
Source
finish
Source
include(*patterns : String) : self
Source
tag(tag : String) : self
Source