Created
May 16, 2021 20:08
-
-
Save epicfaace/bd909b298e0c5e6fd06d5b1d46ecef22 to your computer and use it in GitHub Desktop.
igzip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// When gzip files are padded with null bytes at the end (for example, | |
// bsdtar does this when outputting a .tar.gz to stdout), we should | |
// just read past the null bytes. | |
while (strm->avail_in >= 1 && *(strm->next_in) == '\0') { | |
// printf("\tlarger %d, avail_in %u, total_in %u, next_in %p - %u\n", (uint64_t) ftell_(index->fd, index->f) >= index->compressed_size ? 1 : 0, strm->avail_in, strm->total_in, strm->next_in, *(strm->next_in)); | |
strm->next_in++; | |
strm->avail_in--; | |
} |
Author
epicfaace
commented
May 16, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment