MCPcopy Index your code
hub / github.com/git/git / feed_input_zstream

Function feed_input_zstream

builtin/unpack-objects.c:366–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364};
365
366static ssize_t feed_input_zstream(struct odb_write_stream *in_stream,
367 unsigned char *buf, size_t buf_len)
368{
369 struct input_zstream_data *data = in_stream->data;
370 git_zstream *zstream = data->zstream;
371 void *in = fill(1);
372
373 if (in_stream->is_finished)
374 return 0;
375
376 zstream->next_out = buf;
377 zstream->avail_out = buf_len;
378 zstream->next_in = in;
379 zstream->avail_in = len;
380
381 data->status = git_inflate(zstream, 0);
382
383 in_stream->is_finished = data->status != Z_OK;
384 use(len - zstream->avail_in);
385 return buf_len - zstream->avail_out;
386}
387
388static void stream_blob(unsigned long size, unsigned nr)
389{

Callers

nothing calls this directly

Calls 3

git_inflateFunction · 0.85
fillFunction · 0.70
useFunction · 0.70

Tested by

no test coverage detected