jigdo API

util/gunzip-test.cc File Reference

#include <config.h>
#include <algorithm>
#include <errno.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string.h>
#include <bstream.hh>
#include <gunzip.hh>
#include <log.hh>


void escapedChar (string *o, byte c)
string escapedString (const string &s)
string escapedString (const byte *s, unsigned ssize)
void decompressFile (const char *name)
void testCase2 (const byte *c, unsigned csize, const string &unp, unsigned cbs, unsigned ubs)
void testCase (const byte *c, unsigned csize, const byte *u, unsigned usize, int testNr)
int main (int argc, char *argv[])


int returnCode = 0
const int FILEBUFSIZE = 4096
const int BUFSIZE = 4096
const char *const hexDigits = "0123456789abcdef"

Function Documentation

void @94::decompressFile ( const char *  name  )  [static]

References buf, FILEBUFSIZE, Gunzip::inject(), out, and readBytes().

Referenced by main().

void @94::escapedChar ( string *  o,
byte  c 
) [static]

References hexDigits.

string @94::escapedString ( const byte *  s,
unsigned  ssize 
) [inline, static]

References escapedChar().

string @94::escapedString ( const string &  s  )  [inline, static]

References escapedChar().

int main ( int  argc,
char *  argv[] 

void @94::testCase ( const byte *  c,
unsigned  csize,
const byte *  u,
unsigned  usize,
int  testNr 
) [static]

References escapedString(), msg, and testCase2().

Referenced by main().

void @94::testCase2 ( const byte *  c,
unsigned  csize,
const string &  unp,
unsigned  cbs,
unsigned  ubs 
) [static]

References escapedString(), Gunzip::inject(), msg, and returnCode.

Referenced by testCase().

Variable Documentation

unsigned bufsize

const int BUFSIZE = 4096 [static]

const int FILEBUFSIZE = 4096 [static]

Referenced by decompressFile().

const char* const hexDigits = "0123456789abcdef" [static]

int returnCode = 0

Referenced by compare(), main(), and testCase2().

Generated on Tue Sep 23 14:27:42 2008 for jigdo by  doxygen 1.5.6