Syd Mayfield CS4350 Project 1
XF File Format
Updated 2/09/2021
NAME
XF
Description
XF files follow the LZ-77 method of file compression.
It offers minimal if any file compression to text files, but it encodes the file to XF specifications. XF codes can be shown in the following format
- byte: offset
- byte: size of repeated data
- next character
XF codes:
- '0' '0' 'p' 1
- '0' '0' 'e' 1
- '0' '0' 'p' 1
- '0' '0' 'p' 1
- '0' '0' 'e' 1
- '0' '0' 'r' 1
A XF file is a single compressed text file.
Each XF file consists of the following
- XF files contain "XF" at the head of the file to identify its type.
- Whitespace
- Original filename
- Whitespace
- Encoded data
The compressed file will look like this for "pepper"
- "XF"
- " "
- "text.txt"
- " "
- encoded data
XF text.txt ^@^@p^@^@e^@^@p^@^@p^@^@p^@^@r