60 int k, walker_len = 0, walker;
62 int next_offset, match_off;
64 int old_offset, match_bits;
93 old_offset = next_offset;
105 walker =
data[
i++] << 24;
118 walker |= (
data[
i++] & 0xff) << (24 - walker_len);
123 dict[next_offset++] = (((
uint32) walker) >> ((
uint32) 24));
130 if (--walker_len == 0)
134 walker =
data[
i++] << 24;
144 walker |= (
data[
i++] & 0xff) << (24 - walker_len);
149 dict[next_offset++] = (
uint8) (walker >> 24 | 0x80);
158 if (--walker_len < (big ? 3 : 2))
162 walker |= (
data[
i++] & 0xff) << (24 - walker_len);
177 for (; walker_len < 9; walker_len += 8)
181 walker |= (
data[
i++] & 0xff) << (24 - walker_len);
190 for (; walker_len < 11; walker_len += 8)
194 walker |= (
data[
i++] & 0xff) << (24 - walker_len);
205 for (; walker_len < 13; walker_len += 8)
209 walker |= (
data[
i++] & 0xff) << (24 - walker_len);
219 for (; walker_len < 17; walker_len += 8)
223 walker |= (
data[
i++] & 0xff) << (24 - walker_len);
227 match_off = (((
uint32) walker) >> ((
uint32) 16)) + 2368;
247 walker |= (
data[
i++] & 0xff) << (24 - walker_len);
257 for (; walker_len < 10; walker_len += 8)
261 walker |= (
data[
i++] & 0xff) << (24 - walker_len);
271 for (; walker_len < 14; walker_len += 8)
275 walker |= (
data[
i++] & 0xff) << (24 - walker_len);
278 match_off = (walker >> 18) + 320;
288 walker =
data[
i++] << 24;
318 match_bits = big ? 14 : 11;
322 if (--walker_len == 0)
326 walker =
data[
i++] << 24;
331 if (--match_bits == 0)
337 match_len = (big ? 16 : 13) - match_bits;
339 if (--walker_len < match_len)
341 for (; walker_len < match_len; walker_len += 8)
347 walker |= (
data[
i++] & 0xff) << (24 - walker_len);
351 match_bits = match_len;
353 ((walker >> (32 - match_bits)) & (~(-1 << match_bits))) | (1 <<
355 walker <<= match_bits;
356 walker_len -= match_bits;
363 k = (next_offset - match_off) & (big ? 65535 : 8191);
366 dict[next_offset++] = dict[
k++];
368 while (--match_len != 0);
376 *rlen = next_offset - old_offset;
#define RDP_MPPC_DICT_SIZE
#define RDP_MPPC_COMPRESSED
int mppc_expand(uint8 *data, uint32 clen, uint8 ctype, uint32 *roff, uint32 *rlen)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
uint8 hist[RDP_MPPC_DICT_SIZE]