Go to the documentation of this file.
24 #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__)
27 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
29 # define SET_BINARY_MODE(file)
46 char *
str = malloc(
len + 1);
61 *err = aprintf(__VA_ARGS__); \
104 unsigned long crc = 0;
105 unsigned long len = 0;
106 unsigned long buf = 0;
111 fwrite(
"\x1f\x8b\x08\0\0\0\0\0\0\xff", 1, 10,
out);
122 unsigned long long memb;
127 unsigned char dat[
CHUNK];
145 unsigned char scrap[
CHUNK];
150 BYE(
"out of memory");
152 BYE(
"input invalid: %s", strm.
msg);
154 BYE(
"internal error");
162 BYE(
"overflow error");
237 if (
num - prev < 3) {
244 unsigned long last = (
unsigned long)1 << prev;
246 if (((
buf >> prev) & 7) == 3) {
251 if (
num - prev < 10) {
259 if (((
buf >> prev) & 0x3ff) == 3) {
267 else if (((
buf >> prev) & 6) == 0) {
270 num = (prev + 10) & ~7;
315 buf += (unsigned)(*put++) <<
num;
321 fwrite(put, 1,
end - put,
out);
329 buf += (unsigned)(*put++) <<
num;
388 part = (part >> 8) + ((
unsigned long)(*put++) << 24);
393 if (len2 < 0 || (
unsigned long long)len2 != memb)
394 BYE(
"overflow error");
398 else if (tail == 8) {
407 BYE(
"internal error");
425 if (
state != BETWEEN)
426 BYE(
"input invalid: incomplete gzip stream");
440 putc(crc >> 16,
out);
441 putc(crc >> 24,
out);
449 if (ferror(
in) || ferror(
out))
450 BYE(
"i/o error: %s", strerror(errno));
467 fprintf(
stderr,
"gznorm error: %s\n",
err);
int ZEXPORT inflateEnd(z_streamp strm)
int __cdecl vsnprintf(char *buffer, size_t count, const char *format, va_list argptr)
int ZEXPORT inflate(z_streamp strm, int flush)
#define SET_BINARY_MODE(file)
uLong ZEXPORT crc32_combine(uLong crc1, uLong crc2, z_off_t len2)
OPENSSL_EXPORT ASN1_BIT_STRING * bits
char * aprintf(char *fmt,...)
GTEST_API_ const char * fmt
int ZEXPORT inflateReset(z_streamp strm)
UniquePtr< SSL_SESSION > ret
int gzip_normalize(FILE *in, FILE *out, char **err)
#define inflateInit2(strm, windowBits)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:59