12#ifndef ZYPP_CURL_PARSER_MEDIABLOCKLIST_H 
   13#define ZYPP_CURL_PARSER_MEDIABLOCKLIST_H 
   52  size_t addBlock(off_t off, 
size_t size);
 
   96  void setChecksum(
size_t blkno, 
const std::string& cstype, 
int csl, 
unsigned char *cs, 
size_t cspad=0);
 
   97  bool checkChecksum(
size_t blkno, 
const unsigned char *buf, 
size_t bufl) 
const;
 
  110  void setRsum(
size_t blkno, 
int rsl, 
unsigned int rs, 
size_t rspad=0);
 
  117  bool checkRsum(
size_t blkno, 
const unsigned char *buf, 
size_t bufl) 
const;
 
  118  unsigned int updateRsum(
unsigned int rs, 
const char *bytes, 
size_t len) 
const;
 
  119  bool verifyRsum(
size_t blkno, 
unsigned int rs) 
const;
 
  129  void reuseBlocks(FILE *wfp, 
const std::string& filename);
 
  137  void writeBlock(
size_t blkno, FILE *fp, 
const unsigned char *buf, 
size_t bufl, 
size_t start, std::vector<bool> &found) 
const;
 
  138  bool checkChecksumRotated(
size_t blkno, 
const unsigned char *buf, 
size_t bufl, 
size_t start) 
const;
 
 
Compute Message Digests (MD5, SHA1 etc)
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.