1 /***********************************************************
3 ***********************************************************/
6 static int j; /* remaining bytes to copy */
16 decode(uint count, uchar buffer[])
17 /* The calling function must keep the number of
18 bytes to be processed. This function decodes
19 either 'count' bytes or 'DICSIZ' bytes, whichever
20 is smaller, into the array 'buffer[]' of size
22 Call decode_start() once for each new file
23 before calling this function. */
30 buffer[r] = buffer[i];
31 i = (i + 1) & (DICSIZ - 1);
43 j = c - (UCHAR_MAX + 1 - THRESHOLD);
44 i = (r - decode_p() - 1) & (DICSIZ - 1);
46 buffer[r] = buffer[i];
47 i = (i + 1) & (DICSIZ - 1);