diff options
author | Mike Buland <eichlan@xagasoft.com> | 2008-09-15 20:03:56 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2008-09-15 20:03:56 +0000 |
commit | 597a1487c716b799428f4b4a4903e65df4c93ba9 (patch) | |
tree | c743b0d4dfc3bacbffc196589543ec4e9abf1aaf /misc | |
parent | 3c6cb7f2347aed974543f9082a0ccd297577db41 (diff) | |
download | libbu++-597a1487c716b799428f4b4a4903e65df4c93ba9.tar.gz libbu++-597a1487c716b799428f4b4a4903e65df4c93ba9.tar.bz2 libbu++-597a1487c716b799428f4b4a4903e65df4c93ba9.tar.xz libbu++-597a1487c716b799428f4b4a4903e65df4c93ba9.zip |
Whoa! Loads of NIDS work. It actually compiles, runs, and I'm optimizing the
hell out of it. Good times, everyone. This is a major chunk for congo, and
the new optimizations should be good.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/raa_format.txt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/misc/raa_format.txt b/misc/raa_format.txt index 1b2c9f8..693cbc8 100644 --- a/misc/raa_format.txt +++ b/misc/raa_format.txt | |||
@@ -22,16 +22,17 @@ structures. | |||
22 | The basic header: | 22 | The basic header: |
23 | 23 | ||
24 | 00-03: Magic Number, something cute, I dunno yet (encoding independant) | 24 | 00-03: Magic Number, something cute, I dunno yet (encoding independant) |
25 | 04: Byte count/order for standard indexes (8/4 for 64/32bit systems) | 25 | 04: Version code (0) |
26 | High order bit masked out determines endianness (1 = big, 0 = small) | 26 | 05: Byte count/order for standard indexes (8/4 for 64/32bit systems) |
27 | High order bit masked out determines endianness (1 = big, 0 = little) | ||
27 | The program will only accept one word-width for now, we can make it | 28 | The program will only accept one word-width for now, we can make it |
28 | adjustable later, or fix this at 4 bytes. | 29 | adjustable later, or fix this at 4 bytes. |
29 | 05-08: Blocksize in bytes, could be anything, I don't think we need to worry | 30 | 06-09: Blocksize in bytes, could be anything, I don't think we need to worry |
30 | about OS related things for this, but it should be set intelligently by | 31 | about OS related things for this, but it should be set intelligently by |
31 | the owner. This includes the bytes reserved for a block header. | 32 | the owner. This includes the bytes reserved for a block header. |
32 | 09-12: Total block count, includes both used and unused blocks. | 33 | 10-13: Total block count, includes both used and unused blocks. |
33 | 13-16: Total used blocks, useful for determining when to expand. | 34 | 14-17: Total used blocks, useful for determining when to expand. |
34 | 17-24: Reserved for flags and the like, should be all zeros for now. | 35 | 18-24: Reserved for flags and the like, should be all zeros for now. |
35 | 36 | ||
36 | At this point are a number of "blocks" each with their own header and data are | 37 | At this point are a number of "blocks" each with their own header and data are |
37 | laid out sequentially, accessing one should be easy, seek to | 38 | laid out sequentially, accessing one should be easy, seek to |
@@ -45,10 +46,9 @@ The block header is as follows: | |||
45 | then this block is the last in the chain. | 46 | then this block is the last in the chain. |
46 | 08-11: Prev block in chain. If this number matches the current block index | 47 | 08-11: Prev block in chain. If this number matches the current block index |
47 | then this block is the first in the chain. | 48 | then this block is the first in the chain. |
48 | 12-15: Number of bytes used/allocated remaining in the chain. If this is the | 49 | 12-15: Number of bytes used. If this is the first block, this is the total |
49 | first block, then this is the total size of the object accross all | 50 | amount of data in the stream, otherwise it's the amount of data in the |
50 | blocks in the chain. For the last block in the chain this will usually | 51 | current block. |
51 | be less than the available space. | ||
52 | 16-19: Reserved flagspace or something, make sure it's all zeros. | 52 | 16-19: Reserved flagspace or something, make sure it's all zeros. |
53 | 20-xx: Block data, whatever you wanted to store. At the moment this is going | 53 | 20-xx: Block data, whatever you wanted to store. At the moment this is going |
54 | to be (blocksize) - 20 for now, it will change if the block header | 54 | to be (blocksize) - 20 for now, it will change if the block header |