class

Crowbar::Rules::SevenZipRule

Inherits Crowbar::Rule < Reference < Object

Structure-preserving rule for 7-Zip (7z) archives. Preserves the 6-byte 7z file signature and 32-byte archive header structure, while mutating archive version, NextHeader offsets, NextHeader sizes, and compressed stream payloads, and automatically recalculating the StartHeader CRC32.

Constants

SEVEN_ZIP_SIGNATURE = Bytes[55, 122, 188, 175, 39, 28]

Instance methods

apply(context : Context, buffer : Buffer) : Bool

Applies a structure-preserving transformation to the buffer

Source
description
Source
match?(buffer : Buffer) : Bool

Checks whether the buffer matches the format handled by this rule

Source
name
Source