libdap
Updated for version 3.17.0
|
00001 /* 00002 * chunked_stream.h 00003 * 00004 * Created on: Sep 15, 2013 00005 * Author: jimg 00006 */ 00007 00008 #ifndef CHUNK_STREAM_H_ 00009 #define CHUNK_STREAM_H_ 00010 00011 #define CHUNK_DATA 0x00000000 00012 #define CHUNK_END 0x01000000 00013 #define CHUNK_ERR 0x02000000 00014 00015 #if !BYTE_ORDER_PREFIX 00016 // LITTLE or BIG endian if set? jhrg 11/26/13 00017 // #define CHUNK_BIG_ENDIAN 0x04000000 00018 00019 #define CHUNK_LITTLE_ENDIAN 0x04000000 00020 #endif 00021 00022 // Chunk type mask masks off the low bytes and the little endian bit. 00023 // The three chunk types (DATA, END and ERR) are mutually exclusive. 00024 #define CHUNK_TYPE_MASK 0x03000000 00025 #define CHUNK_SIZE_MASK 0x00FFFFFF 00026 00027 #define CHUNK_SIZE 4096 00028 00029 #endif /* CHUNK_STREAM_H_ */