# BitStream.h File Reference

This class allows you to write and read native types as a string of bits. BitStream is used extensively throughout RakNet and is designed to be used by users as well. More...

`#include "RakMemoryOverride.h"`
`#include "RakNetDefines.h"`
`#include "Export.h"`
`#include "RakNetTypes.h"`
`#include <assert.h>`
`#include <cmath>`
`#include <float.h>`

## Namespaces

namespace | RakNet

## Classes

class | RakNet::BitStream

## Defines

#define | BITSTREAM_STACK_ALLOCATION_SIZE 256
| Arbitrary size, just picking something likely to be larger than most packets.

## Detailed Description

This class allows you to write and read native types as a string of bits. BitStream is used extensively throughout RakNet and is designed to be used by users as well.

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.