# 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"`

## Namespaces

namespace | RakNet

## Classes

class | StringCompressor
| Writes and reads strings to and from bitstreams. More...

## 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 Kevin Jenkins.

Usage of RakNet is subject to the appropriate license agreement. Creative Commons Licensees are subject to the license found at http://creativecommons.org/licenses/by-nc/2.5/ Single application licensees are subject to the license found at http://www.jenkinssoftware.com/SingleApplicationLicense.html Custom license users are subject to the terms therein. GPL license users are subject to the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

## 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.