root/morphix/trunk/cloop/compressed_loop.h

Revision 2, 0.7 kB (checked in by nextime, 2 years ago)

Initial import, branching from morphix svn

Line 
1 #ifndef _COMPRESSED_LOOP_H
2 #define _COMPRESSED_LOOP_H
3
4 #define CLOOP_HEADROOM 128
5
6 /* The cloop header usually looks like this:          */
7 /* #!/bin/sh                                          */
8 /* #V2.00 Format                                      */
9 /* ...padding up to CLOOP_HEADROOM...                 */
10 /* block_size (32bit number, network order)           */
11 /* num_blocks (32bit number, network order)           */
12
13 struct cloop_head
14 {
15         char preamble[CLOOP_HEADROOM];
16         u_int32_t block_size;
17         u_int32_t num_blocks;
18 };
19
20 /* data_index (num_blocks 64bit pointers, network order)...      */
21 /* compressed data (gzip block compressed format)...             */
22
23 #endif /*_COMPRESSED_LOOP_H*/
Note: See TracBrowser for help on using the browser.