MCPcopy Create free account
hub / github.com/git/git / git_deflate_init

Function git_deflate_init

git-zlib.c:175–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void git_deflate_init(git_zstream *strm, int level)
176{
177 int status;
178
179 memset(strm, 0, sizeof(*strm));
180 zlib_pre_call(strm);
181 status = deflateInit(&strm->z, level);
182 zlib_post_call(strm, status);
183 if (status == Z_OK)
184 return;
185 die("deflateInit: %s (%s)", zerr_to_string(status),
186 strm->z.msg ? strm->z.msg : "no message");
187}
188
189static void do_git_deflate_init(git_zstream *strm, int level, int windowBits)
190{

Callers 11

stream_blob_to_packFunction · 0.85
start_putFunction · 0.85
deflate_itFunction · 0.85
do_compressFunction · 0.85
cmd__zlibFunction · 0.85
write_compressedFunction · 0.85
store_objectFunction · 0.85
stream_blobFunction · 0.85
do_compressFunction · 0.85
write_large_blob_dataFunction · 0.85

Calls 4

zlib_pre_callFunction · 0.85
zlib_post_callFunction · 0.85
zerr_to_stringFunction · 0.85
dieFunction · 0.70

Tested by 2

do_compressFunction · 0.68
cmd__zlibFunction · 0.68