Lines Matching +refs:val +refs:entry

412     long val = bitBuf;
422 val |= ((long)(src[srcPos++])) << bitCnt;
427 bitBuf = (int)(val >> requiredBits);
429 *oval = (int)(val & ((1L << requiredBits) - 1));
1514 void GzipFile::setFileName(const std::string &val)
1516 fileName = val;
1568 bool GzipFile::putLong(unsigned long val)
1570 fileBuf.push_back( (unsigned char)((val ) & 0xff));
1571 fileBuf.push_back( (unsigned char)((val>> 8) & 0xff));
1572 fileBuf.push_back( (unsigned char)((val>>16) & 0xff));
1573 fileBuf.push_back( (unsigned char)((val>>24) & 0xff));
1683 bool GzipFile::getLong(unsigned long *val)
1691 *val = ((ch4<<24) & 0xff000000L) |
1943 void ZipEntry::setFileName(const std::string &val)
1945 fileName = val;
1959 void ZipEntry::setComment(const std::string &val)
1961 comment = val;
1983 void ZipEntry::setCompressionMethod(int val)
1985 compressionMethod = val;
1999 void ZipEntry::setCompressedData(const std::vector<unsigned char> &val)
2001 compressedData = val;
2023 void ZipEntry::setUncompressedData(const std::vector<unsigned char> &val)
2025 uncompressedData = val;
2039 void ZipEntry::setCrc(unsigned long val)
2041 crc = val;
2129 void ZipEntry::setPosition(unsigned long val)
2131 position = val;
2167 ZipEntry *entry = *iter;
2168 delete entry;
2176 void ZipFile::setComment(const std::string &val)
2178 comment = val;
2264 bool ZipFile::putLong(unsigned long val)
2266 fileBuf.push_back( ((int)(val )) & 0xff);
2267 fileBuf.push_back( ((int)(val>> 8)) & 0xff);
2268 fileBuf.push_back( ((int)(val>>16)) & 0xff);
2269 fileBuf.push_back( ((int)(val>>24)) & 0xff);
2277 bool ZipFile::putInt(unsigned int val)
2279 fileBuf.push_back( (val ) & 0xff);
2280 fileBuf.push_back( (val>> 8) & 0xff);
2287 bool ZipFile::putByte(unsigned char val)
2289 fileBuf.push_back(val);
2301 ZipEntry *entry = *iter;
2302 entry->setPosition(fileBuf.size());
2304 std::string fname = entry->getFileName();
2309 putInt(entry->getCompressionMethod()); //compression method
2312 putLong(entry->getCrc()); //crc32
2313 putLong(entry->getCompressedSize());
2314 putLong(entry->getUncompressedSize());
2327 std::vector<unsigned char> &buf = entry->getCompressedData();
2347 ZipEntry *entry = *iter;
2348 std::string fname = entry->getFileName();
2349 std::string ecomment = entry->getComment();
2354 putInt(entry->getCompressionMethod()); //compression method
2357 putLong(entry->getCrc()); //crc32
2358 putLong(entry->getCompressedSize());
2359 putLong(entry->getUncompressedSize());
2366 putLong(entry->getPosition());
2449 bool ZipFile::getLong(unsigned long *val)
2457 *val = ((ch4<<24) & 0xff000000L) |
2467 bool ZipFile::getInt(unsigned int *val)
2473 *val = ((ch2<< 8) & 0xff00) |
2482 bool ZipFile::getByte(unsigned char *val)
2486 *val = fileBuf[fileBufPos++];