# StringCompressor.h File Reference

Compresses/Decompresses ASCII strings and writes/reads them to BitStream class instances. You can use this to easily serialize and deserialize your own strings. More...

`#include "Export.h"`
`#include "DS_Map.h"`
`#include "RakMemoryOverride.h"`

## Classes
class | StringCompressor
| Writes and reads strings to and from bitstreams. More...
## Namespaces
namespace | RakNet
| Forward declaration.

## Defines
#define | stringCompressor StringCompressor::Instance()

## Detailed Description

Compresses/Decompresses ASCII strings and writes/reads them to BitStream class instances. You can use this to easily serialize and deserialize your own strings.

This file is part of RakNet Copyright 2003 Jenkins Software LLC

Usage of RakNet is subject to the appropriate license agreement.

## Define Documentation

#define stringCompressor StringCompressor::Instance()

Define to more easily reference the string compressor instance. The RakPeer constructor adds a reference to this class, so don't call this until an instance of RakPeer exists, or unless you call AddReference yourself.