# Poco

# class Base32EncoderBuf

Library: Foundation
Package: Streams
Header: Poco/Base32Encoder.h

## Description

This streambuf base32-encodes all data written to it and forwards it to a connected ostream.

Note: The characters are directly written to the ostream's streambuf, thus bypassing the ostream. The ostream's state is therefore not updated to match the buffer's state.

## Inheritance

Direct Base Classes: UnbufferedStreamBuf

All Base Classes: UnbufferedStreamBuf

## Member Summary

Member Functions: close, encoding

## Constructors

### Base32EncoderBuf

Base32EncoderBuf(
std::ostream & ostr,
int options = BASE32_USE_PADDING
);

## Destructor

### ~Base32EncoderBuf

~Base32EncoderBuf() override;

## Member Functions

### close

int close();

Closes the stream buffer.

### encoding

static const unsigned char * encoding(
int options
);

Returns the alphabet to be used for encoding/decoding according to the specified options.