Skip to content

Instantly share code, notes, and snippets.

@bdonlan
Created October 21, 2008 15:57
Show Gist options
  • Save bdonlan/18335 to your computer and use it in GitHub Desktop.
Save bdonlan/18335 to your computer and use it in GitHub Desktop.
BOBCob format:
FLAG_COMPRESSED = 1
FLAG_C2 = 2
char[5] version "PKG01"
byte flags
byte titlelength
char[titlelength] title
byte filecount
foreach file:
short filename_len
char[filename_len] filename
long filelength
if filelength > 0
if flags & FLAG_COMPRESSED
long compressedlength
byte[flags & FLAG_COMPRESSED ? compressedlength : filelength] data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment