Documentation
¶
Overview ¶
Package par2gen builds minimal valid PAR2 index files in memory for use in tests that exercise PAR2-based filename deobfuscation.
Only FileDesc packets are emitted — enough for the par2.GetFileDescriptors path that reconstructs real filenames from obfuscated Usenet releases. No recovery blocks, IFSC, or Main packets are generated; the par2 reader used by altmount ignores those packet types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileEntry ¶
type FileEntry struct {
// Name is the real (unobfuscated) filename.
Name string
// Content is the file payload. The first 16 KB (zero-padded to exactly
// 16384 bytes) determines Hash16k, which is how the importer matches
// obfuscated files to their real names.
Content []byte
}
FileEntry describes one file that should appear in the generated PAR2 index.
Click to show internal directories.
Click to hide internal directories.