Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '******** Main DB file ********'
- ' Everything allocated in "chunks" of 32 bytes
- File Header:
- DWORD Magic = BPFn where 'n' = file format version
- DWORD dwEntries ' Number of Posts in db
- -------------------------------
- ' Repeats for number of sections
- Post Header:
- WORD wSubSections ' Number of subsections in this part
- WORD wTitleLength ' Length of page title
- <page tile = n chunks>
- ' Repeats depending on number of subsections
- Subsection Headers:
- uByte ID ' Will be one of the "Subsection IDs"
- uByte Reserved ' --> Reserved for future use
- uShort Reserved ' /
- DWORD dwLength ' Length of subsection in chunks (including header)
- <subsection data = dwLength chunks>
- -------------------------------
- Subsection IDs:
- &H01 Page content
- '******** Index file **********'
- ' Repeated for number of entries in DB
- File Index:
- DWORD dwOffset:23 ' Offset of Post (in chunks)
- DWORD dwUsed:1 ' Is section used or free?
- DWORD dwLength:8 ' Length of Post (in chunks)
- DWORD dwPostID ' ID of Post
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement