Lines Matching defs:ch

180         unsigned char ch = *iter;
181 update(ch);
831 virtual bool update(int ch);
882 void put(int ch);
884 void putWord(int ch);
888 void putBits(unsigned int ch, unsigned int bitsWanted);
890 void putBitsR(unsigned int ch, unsigned int bitsWanted);
893 void encodeLiteralStatic(unsigned int ch);
943 bool Deflater::update(int ch)
945 uncompressed.push_back((unsigned char)(ch & 0xff));
1031 void Deflater::put(int ch)
1033 compressed.push_back(ch);
1041 void Deflater::putWord(int ch)
1043 int lo = (ch ) & 0xff;
1044 int hi = (ch>>8) & 0xff;
1065 void Deflater::putBits(unsigned int ch, unsigned int bitsWanted)
1067 //trace("n:%4u, %d\n", ch, bitsWanted);
1072 outputBitBuf = (outputBitBuf>>1) + (ch<<7 & 0x80);
1073 ch >>= 1;
1099 void Deflater::putBitsR(unsigned int ch, unsigned int bitsWanted)
1101 //trace("r:%4u, %d", ch, bitsWanted);
1103 unsigned int rcode = bitReverse(ch, bitsWanted);
1116 void Deflater::encodeLiteralStatic(unsigned int ch)
1118 //trace("c: %d", ch);
1120 if (ch < 144)
1122 putBitsR(ch + 0x0030 , 8); // 00110000
1124 else if (ch < 256)
1126 putBitsR(ch - 144 + 0x0190 , 9); // 110010000
1128 else if (ch < 280)
1130 putBitsR(ch - 256 + 0x0000 , 7); // 0000000
1132 else if (ch < 288)
1134 putBitsR(ch - 280 + 0x00c0 , 8); // 11000000
1138 error("Literal out of range: %d", ch);
1312 unsigned char ch = window[i];
1313 windowBuf[i] = ch;
1314 hash = ((hash<<8) & 0xffffff00) | ch;
1474 void GzipFile::put(unsigned char ch)
1476 data.push_back(ch);
1538 int ch = fgetc(f);
1539 if (ch < 0)
1541 data.push_back(ch);
1557 bool GzipFile::putByte(unsigned char ch)
1559 fileBuf.push_back(ch);
1616 unsigned char ch = *iter;
1617 putByte(ch);
1657 unsigned char ch = *iter;
1658 fputc(ch, f);
1669 bool GzipFile::getByte(unsigned char *ch)
1676 *ch = fileBuf[fileBufPos++];
1702 unsigned char ch;
1705 if (!getByte(&ch))
1707 if (ch != 0x1f)
1712 if (!getByte(&ch))
1714 if (ch != 0x8b)
1721 if (!getByte(&ch))
1723 compressionMethod = ch & 0xff;
1726 if (!getByte(&ch))
1728 //bool ftext = ch & 0x01;
1729 bool fhcrc = ch & 0x02;
1730 bool fextra = ch & 0x04;
1731 bool fname = ch & 0x08;
1732 bool fcomment = ch & 0x10;
1744 if (!getByte(&ch))
1746 //int xfl = ch;
1749 if (!getByte(&ch))
1751 //int os = ch;
1758 if (!getByte(&ch))
1760 long xlen = ch;
1761 if (!getByte(&ch))
1763 xlen = (xlen << 8) + ch;
1766 if (!getByte(&ch))
1776 if (!getByte(&ch))
1778 if (ch==0)
1780 fileName.push_back(ch);
1788 if (!getByte(&ch))
1790 if (ch==0)
1797 if (!getByte(&ch))
1799 if (!getByte(&ch))
1808 if (!getByte(&ch))
1810 compBuf.push_back(ch);
1873 int ch = fgetc(f);
1874 if (ch < 0)
1876 fileBuf.push_back(ch);
2047 void ZipEntry::write(unsigned char ch)
2049 uncompressedData.push_back(ch);
2062 unsigned char ch = *iter;
2063 c32.update(ch);
2073 unsigned char ch = *iter;
2074 compressedData.push_back(ch);
2115 int ch = fgetc(f);
2116 if (ch < 0)
2118 uncompressedData.push_back((unsigned char)ch);
2331 unsigned char ch = (unsigned char) *iter;
2332 putByte(ch);
2435 unsigned char ch = *iter;
2436 fputc(ch, f);
2578 unsigned char ch;
2579 if (!getByte(&ch))
2581 fileName.push_back(ch);
2586 unsigned char ch;
2587 if (!getByte(&ch))
2589 extraField.push_back(ch);
2611 unsigned char ch;
2612 if (!getByte(&ch))
2617 compBuf.push_back(ch);
2618 c1 = c2; c2 = c3; c3 = c4; c4 = ch;
2632 unsigned char ch;
2633 if (!getByte(&ch))
2638 compBuf.push_back(ch);
2839 unsigned char ch;
2840 if (!getByte(&ch))
2842 fileName.push_back(ch);
2847 unsigned char ch;
2848 if (!getByte(&ch))
2850 extraField.push_back(ch);
2855 unsigned char ch;
2856 if (!getByte(&ch))
2858 fileComment.push_back(ch);
2898 unsigned char ch;
2899 if (!getByte(&ch))
2901 digitalSignature.push_back(ch);
2957 unsigned char ch;
2958 if (!getByte(&ch))
2960 comment.push_back(ch);
3008 int ch = fgetc(f);
3009 if (ch < 0)
3011 fileBuf.push_back(ch);