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
  1. byte: offset
  2. byte: size of repeated data
  3. next character

XF codes:

THE FORMAT

A XF file is a single compressed text file.

Each XF file consists of the following

  1. XF files contain "XF" at the head of the file to identify its type.
  2. Whitespace
  3. Original filename
  4. Whitespace
  5. Encoded data

The compressed file will look like this for "pepper"

XF text.txt ^@^@p^@^@e^@^@p^@^@p^@^@p^@^@r