---
name: "ost_OZStream"
section: "3"
platform: "linux"
package: "libcommoncpp2-doc"
version: "1.8.1-10"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/ost_OZStream"
---

# ost\_OZStream(3)

## NAME

ost::OZStream

## SYNOPSIS

`#include <zstream.h>`

Inherits streambuf, and ostream.

### Public Member Functions

**OZStream** (bool throwflag=false)\
 **OZStream** (const char \*name, int level=Z\_DEFAULT\_COMPRESSION, size\_t size=512, bool tf=false)\
 bool **isOpen** (void)\
 void **close** (void)\
 virtual **~OZStream** ()\
 void **open** (const char \*name, int level=Z\_DEFAULT\_COMPRESSION, size\_t size=512)\
 size\_t **getBufferSize** (void)\

### Protected Member Functions

void **allocate** (size\_t size)\
 int **overflow** (int ch)\

### Protected Attributes

size\_t **bufsize**\
 char \* **pbuf**\

## Constructor & Destructor Documentation

### ost::OZStream::OZStream (bool throwflag = `false`)

### ost::OZStream::OZStream (const char \* name, int level = `Z_DEFAULT_COMPRESSION`, size\_t size = `512`, bool tf = `false`)

### virtual ost::OZStream::~OZStream ()` [virtual]`

## Member Function Documentation

### void ost::OZStream::allocate (size\_t size)` [protected]`

### void ost::OZStream::close (void)

### size\_t ost::OZStream::getBufferSize (void)` [inline]`

### bool ost::OZStream::isOpen (void)

### void ost::OZStream::open (const char \* name, int level = `Z_DEFAULT_COMPRESSION`, size\_t size = `512`)

### int ost::OZStream::overflow (int ch)` [protected]`

## Member Data Documentation

### size\_t ost::OZStream::bufsize` [protected]`

### char\* ost::OZStream::pbuf` [protected]`

## Author

Generated automatically by Doxygen for GNU CommonC++ from the source code.
