SZDD API Reference
SZDD::Decompressor
Instance Methods
header
Returns SZDD header information.
Returns: [Cabriolet::Models::SZDDHeader](lib/cabriolet/models/szdd_header.rb)
Example:
header = decompressor.header
puts "Original filename: #{header.original_filename}"
puts "Compression mode: #{header.compression_mode}" extract(output_path)
Decompresses file.
Parameters: * output_path (String) - Output file path
Example:
decompressor.extract('file.exe')SZDD::Compressor
Instance Methods
compress(input_path, output_path)
Compresses a file.
Parameters: * input_path (String) - Input file * output_path (String) - Output compressed file
Example:
compressor.compress('file.exe', 'file.ex_') compress_from_memory(data, output_path, original_name = nil)
Compresses from memory.
Parameters: * data (String) - Data to compress * output_path (String) - Output file * original_name (String) - Original filename to store
Example:
data = File.binread('file.exe')
compressor.compress_from_memory(data, 'file.ex_', 'file.exe')Notes
SZDD format is primarily used for single-file compression in Microsoft installers and driver packages.