MCPcopy Create free account
hub / github.com/aria2/aria2 / init

Method init

test/GZipDecoder.cc:47–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45GZipDecoder::~GZipDecoder() { release(); }
46
47void GZipDecoder::init()
48{
49 finished_ = false;
50 release();
51 strm_ = new z_stream();
52 strm_->zalloc = Z_NULL;
53 strm_->zfree = Z_NULL;
54 strm_->opaque = Z_NULL;
55 strm_->avail_in = 0;
56 strm_->next_in = Z_NULL;
57
58 // initialize z_stream with gzip/zlib format auto detection enabled.
59 if (Z_OK != inflateInit2(strm_, 47)) {
60 throw DL_ABORT_EX("Initializing z_stream failed.");
61 }
62}
63
64void GZipDecoder::release()
65{

Callers 14

testAllocateMethod · 0.45
setUpMethod · 0.45
testDecodeMethod · 0.45
testReceiveMessageMethod · 0.45
testEncryptMethod · 0.45
testValidateMethod · 0.45
testValidateMethod · 0.45
testValidate_failMethod · 0.45
setUpMethod · 0.45
testSendMessageMethod · 0.45
testHandshakeMethod · 0.45

Calls

no outgoing calls

Tested by 14

testAllocateMethod · 0.36
setUpMethod · 0.36
testDecodeMethod · 0.36
testReceiveMessageMethod · 0.36
testEncryptMethod · 0.36
testValidateMethod · 0.36
testValidateMethod · 0.36
testValidate_failMethod · 0.36
setUpMethod · 0.36
testSendMessageMethod · 0.36
testHandshakeMethod · 0.36