Ruby: ext/zlib/zlib-1.2.13/uncompr.c File Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Macros | Functions
uncompr.c File Reference
`#include "zlib.h"`

Go to the source code of this file.

## Macros
#define | ZLIB_INTERNAL

## Functions
int ZEXPORT | uncompress2 (Bytef *dest, uLongf *destLen, const Bytef *source, uLong *sourceLen)
int ZEXPORT | uncompress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)

## Macro Definition Documentation

## ◆ ZLIB_INTERNAL

#define ZLIB_INTERNAL

Definition at line 8 of file uncompr.c.

## Function Documentation

## ◆ uncompress()

int ZEXPORT uncompress | ( | Bytef * | dest,
|  | uLongf * | destLen,
|  | const Bytef * | source,
|  | uLong | sourceLen
| ) |  |

Definition at line 86 of file uncompr.c.

References uncompress2().

## ◆ uncompress2()

int ZEXPORT uncompress2 | ( | Bytef * | dest,
|  | uLongf * | destLen,
|  | const Bytef * | source,
|  | uLong * | sourceLen
| ) |  |

Definition at line 27 of file uncompr.c.

References err, inflate(), inflateEnd(), inflateInit, len, max, Z_BUF_ERROR, z_const, Z_DATA_ERROR, Z_NEED_DICT, Z_NO_FLUSH, Z_OK, and Z_STREAM_END.

Referenced by uncompress().