Some Notes: When including screen shots, avoid .BMP images if possible. They are huge, the only advantage is the quick display time. Icons for Linux: I have not created an image template for the .ICO format, so for now the Linux version will not have custom icons displayed. Contact: E-mail: William Yu All Code File Structure ----------------------- [PACKET HEADER] 2 - bytes ID (257 or 0x01 0x01) 50 - bytes Description 30 - bytes Any extra info. 2 - bytes LENGTH n - bytes Icon (for now we can assume 766 bytes) 4 - bytes # of snippets in this Packet [SNIPPET] 4 - bytes SIZE OF CURRENT INDEX (inclusive, including source code) 1 - byte (0 = Nothing, 1 = New snippet, 2 = Marked) 2 - bytes # Lines (0 = Binary file) 4 - bytes SIZE of SNIPPET (after extraction) 1 - byte State (0 = ASCII TEXT, 1 = POSTIT!, 2 = ZIP, 3 = ...) 4 - bytes RESERVED 2 - bytes LENGTH n - bytes SUBJECT, AUTHOR, CODE OF, ORIGIN, DATE, SAVEFILE Deliminated by CHR$(227) 2 - bytes LENGTH n - bytes LONG DESCRIPTION, lines deliminated by CHR$(227) 1 - byte (0 = No Screen shot, 1 = Screen shot (BMP), 2 = JPEG, 3 = GIF) [4 - bytes size of screen shot n - bytes picture ] n - bytes Source code Pseudo structure ---------------- [PACKET HEADER] [SNIPPETS] [SNIPPETS] : [SNIPPETS] [END] All Code Update Packet Structure -------------------------------- [UPDATE PACKET HEADER] 2 - bytes ID 2 - bytes LENGTH n - bytes Description 2 - bytes LENGTH n - bytes Creator(s) 8 - bytes Authentication check (or Reserved) 2 - bytes LENGTH n - bytes DEFAULT Icon [ID HEADER] 1 - byte ID (0 = Add, 1 = Edit, 2 = Delete) [ADD HEADER] 2 - bytes LENGTH n - bytes Name of Packet 2 - bytes LENGTH (0 = Use default Icon) n - bytes Icon 4 - bytes Number of Additions (for this packet) [ADD SNIPPETS] [SNIPPETS] - See above SNIPPETS header [EDIT HEADER] 2 - bytes LENGTH n - bytes Name of Packet 2 - bytes LENGTH (0 = no new Icon) n - bytes Icon file 4 - bytes Number of Edits (for this packet) [EDIT SNIPPETS only HEADER] 2 - bytes LENGTH (Match old header) n - bytes OLD SUBJECT, AUTHOR, CODE OF, ORIGIN, DATE, SAVEFILE Deliminated by CHR$(227) 2 - bytes LENGTH (0 = keep old) n - bytes NEW SUBJECT, AUTHOR, CODE OF, ORIGIN, DATE, SAVEFILE Deliminated by CHR$(227) 2 - bytes LENGTH (0 = keep old) n - bytes NEW LONG DESCRIPTION 1 - byte (0 = Keep old screens, 1 = Screen shot (BMP), 2 = JPEG, 3 = GIF) [4 - bytes size of screen shot n - bytes picture ] [DELETE HEADER] 2 - bytes LENGTH n - bytes Name of Packet 4 - bytes Number of Deletions (for this packet) [DELETE SNIPPETS] 2 - bytes LENGTH (Match old header) n - bytes OLD SUBJECT, AUTHOR, CODE OF, ORIGIN, DATE, SAVEFILE Deliminated by CHR$(227) Pseudo Structure ---------------- [UPDATE PACKET HEADER] [ID HEADER = 0] [ADD HEADER] [ADD SNIPPETS] [ADD SNIPPETS] : [ADD SNIPPETS] [END ADD] [ID HEADER = 0] [ADD HEADER] [ADD SNIPPETS] [ADD SNIPPETS] : [ADD SNIPPETS] [END ADD] [ID HEADER = 1] [EDIT HEADER] [EDIT SNIPPETS] [EDIT SNIPPETS] : [EDIT SNIPPETS] [END EDIT] [END]