source: trunk/symbol_table/src/buffer.hpp @ 2010

Last change on this file since 2010 was 2010, checked in by ksherdy, 7 years ago

Refactor fixed lengths to sync ICXML buffer model. Report GID on start pos, scan forward support file diff QA.

File size: 657 bytes
Line 
1#ifndef BUFFER_HPP
2#define BUFFER_HPP
3
4///////////////////////////////////////////////////////////////////////////
5// Buffer Management
6///////////////////////////////////////////////////////////////////////////
7#define PADDING_BLOCKS 1
8#define PADDING_SIZE BLOCK_SIZE * PADDING_BLOCKS
9#define LOOKBACK_BLOCKS 1
10#define LOOKBACK_SIZE BLOCK_SIZE * LOOKBACK_BLOCKS
11#define SEGMENT_BLOCKS 1000                                                     // No COPY BACK for test, starts within segment
12#define SEGMENT_SIZE BLOCK_SIZE * (SEGMENT_BLOCKS)      // (bytes) a multiple of BLOCK_SIZE
13#define SEGMENT_ALLOC_SIZE (LOOKBACK_SIZE + SEGMENT_SIZE + PADDING_SIZE) / sizeof(BitBlock) // (bytes)
14
15#endif // BUFFER_HPP
Note: See TracBrowser for help on using the repository browser.