jigdo API
Last update by Admin on 2010-05-23
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>
Functions | |
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[]) |
Variables | |
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] |
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[] | |||
) |
References c, decompressFile(), escapedChar(), msg, o, returnCode, Logger::scanOptions(), test(), and testCase().
void @94::testCase | ( | const byte * | c, | |
unsigned | csize, | |||
const byte * | u, | |||
unsigned | usize, | |||
int | testNr | |||
) | [static] |
void @94::testCase2 | ( | const byte * | c, | |
unsigned | csize, | |||
const string & | unp, | |||
unsigned | cbs, | |||
unsigned | ubs | |||
) | [static] |
Variable Documentation
byte* buf |
unsigned bufsize |
const int BUFSIZE = 4096 [static] |
const int FILEBUFSIZE = 4096 [static] |
Referenced by decompressFile().
const char* const hexDigits = "0123456789abcdef" [static] |
string o |
Referenced by ConfigFile::Find::Find(), main(), mkfiles(), and ConfigFile::Find::next().
int returnCode = 0 |
Referenced by compare(), main(), and testCase2().
Generated on Tue Sep 23 14:27:42 2008 for jigdo by
