---
name: "zipios_InflateInputStreambuf"
section: "3"
platform: "linux"
package: "libzipios++-dev"
version: "0.1.5.9+cvs.2007.04.28-6"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/zipios_InflateInputStreambuf"
---

# zipios\_InflateInputStreambuf(3)

InflateInputStreambuf is an input stream filter, that inflates the input from the attached input stream.

## NAME

zipios::InflateInputStreambuf - **InflateInputStreambuf** is an input stream filter, that inflates the input from the attached input stream.

## SYNOPSIS

`#include <inflateinputstreambuf.h>`

Inherits **zipios::FilterInputStreambuf**.

Inherited by **zipios::ZipInputStreambuf**.

### Public Member Functions

**InflateInputStreambuf** (streambuf \*inbuf, int s\_pos=-1, bool del\_inbuf=false)\
 **InflateInputStreambuf** *constructor.*  bool **reset** (int stream\_position=-1)\
 *Resets the zlib stream and purges input and output buffers.*

### Protected Member Functions

virtual int **underflow** ()\

### Protected Attributes

const int **\_outvecsize**\
 vector\< char \> **\_outvec**\

## Detailed Description

**InflateInputStreambuf** is an input stream filter, that inflates the input from the attached input stream.

Deflation/Inflation is a compression/decompression method used in gzip and zip. The zlib library is used to perform the actual inflation, this class only wraps the functionality in an input stream filter.

Definition at line 22 of file inflateinputstreambuf.h.

## Constructor & Destructor Documentation

### zipios::InflateInputStreambuf::InflateInputStreambuf (streambuf \* inbuf, int s\_pos = `-1`, bool del\_inbuf = `false`)` [explicit]`

**InflateInputStreambuf** constructor.

**Parameters:**

*inbuf* the streambuf to use for input. \
 *s\_pos* a position to reset the inbuf to before reading. Specify -1 to read from the current position. \
 *del\_inbuf* if true is specified inbuf will be deleted, when the **InflateInputStreambuf** is destructed.

Definition at line 18 of file inflateinputstreambuf.cpp.

## Member Function Documentation

### bool zipios::InflateInputStreambuf::reset (int stream\_position = `-1`)

Resets the zlib stream and purges input and output buffers. repositions the input streambuf at stream\_position.

**Parameters:**

*stream\_position* a position to reset the inbuf to before reading. Specify -1 to read from the current position.

Definition at line 117 of file inflateinputstreambuf.cpp.

## Author

Generated automatically by Doxygen for Zipios++ from the source code.
