class

Crowbar::Rules::TarRule

Inherits Crowbar::Rule < Reference < Object

Structure-preserving rule for Unix TAR archives (POSIX UStar). Preserves 512-byte block alignment and UStar header structure, while mutating file names, permissions, file size records, type flags, or data payloads, and automatically recalculating the octal header checksum.

Constants

USTAR_MAGIC = "ustar".to_slice

Instance methods

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

Applies a structure-preserving transformation to the buffer

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

Checks whether the buffer matches the format handled by this rule

Source
name
Source