libdap Updated for version 3.20.5
libdap4 is an implementation of OPeNDAP's DAP protocol.
chunked_stream.h
1/*
2 * chunked_stream.h
3 *
4 * Created on: Sep 15, 2013
5 * Author: jimg
6 */
7
8#ifndef CHUNK_STREAM_H_
9#define CHUNK_STREAM_H_
10
11#define CHUNK_DATA 0x00000000
12#define CHUNK_END 0x01000000
13#define CHUNK_ERR 0x02000000
14
15#if !BYTE_ORDER_PREFIX
16// LITTLE or BIG endian if set? jhrg 11/26/13
17// #define CHUNK_BIG_ENDIAN 0x04000000
18
19#define CHUNK_LITTLE_ENDIAN 0x04000000
20#endif
21
22// Chunk type mask masks off the low bytes and the little endian bit.
23// The three chunk types (DATA, END and ERR) are mutually exclusive.
24#define CHUNK_TYPE_MASK 0x03000000
25#define CHUNK_SIZE_MASK 0x00FFFFFF
26
27#define CHUNK_SIZE 4096
28
29#endif /* CHUNK_STREAM_H_ */