91#define Buf_size (8 * 2*sizeof(char))
95{ if (state->out_offset < state->out_size-1) { \
96 state->out_buf[state->out_offset++] = (char) ((w) & 0xff); \
97 state->out_buf[state->out_offset++] = (char) ((ush)(w) >> 8); \
99 R__flush_outbuf(state,(w),2); \
104{ if (state->out_offset < state->out_size) { \
105 state->out_buf[state->out_offset++] = (char) (b); \
107 R__flush_outbuf(state,(b),1); \
141 state->R__bits_sent = 0L;
156 Tracevv((stderr,
" l %2d v %4x ", length, value));
157 Assert(length > 0 && length <= 15,
"invalid length");
158 state->R__bits_sent += (
ulg)length;
185 register unsigned res = 0;
188 code >>= 1, res <<= 1;
201 R__error(
"output buffer too small for in-memory compression");
208 }
else if (bytes == 1) {
227 state->R__bits_sent = (state->R__bits_sent+7) & ~7;
247 R__bits_sent += 2*16;
251 R__error(
"output buffer too small for in-memory compression");
259 state->R__bits_sent += (
ulg)len<<3;
273 return (zfile ==
NULL ||
274 (fseek(zfile, -1L, SEEK_CUR) == 0 &&
275 fseek(zfile, 1L, SEEK_CUR) == 0));
301 int method = Z_DEFLATED;
304 if (tgtsize <= 6L) {
R__error(
"target buffer too small"); }
306 crc = updcrc((
char *)
NULL, 0);
307 crc = updcrc(src, (
extent) srcsize);
317 state.
in_size = (unsigned)srcsize;
333 tgt[0] = (char)(method & 0xff);
334 tgt[1] = (char)((method >> 8) & 0xff);
335 tgt[2] = (char)(crc & 0xff);
336 tgt[3] = (char)((crc >> 8) & 0xff);
337 tgt[4] = (char)((crc >> 16) & 0xff);
338 tgt[5] = (char)((crc >> 24) & 0xff);
357 if (block_size > (
ulg)bsize) block_size = (
ulg)bsize;
359 state->
in_offset += (unsigned)block_size;
360 return (
int)block_size;
int R__bi_init(bits_internal_state *state)
unsigned R__bi_reverse(unsigned code, int len)
int R__copy_block(bits_internal_state *state, char *buf, unsigned len, int header)
static int R__flush_outbuf()
int R__send_bits(bits_internal_state *state, int value, int length)
ulg R__memcompress(char *tgt, ulg tgtsize, char *src, ulg srcsize)
int gCompressionLevel
Copyright (C) 1990-1993 Mark Adler, Richard B.
int R__bi_windup(bits_internal_state *state)
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
tree_internal_state * R__get_thread_tree_state()
#define Assert(cond, msg)
tree_internal_state * t_state
uch R__window[2L *((unsigned) 32768)]
Pos R__prev[((unsigned) 32768)]