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 "NetworkTypes.h"
#include <assert.h>
#include <math.h>
#include <float.h>

Namespaces

namespace  RakNet

Classes

class  RakNet::BitStream

Defines

#define __BITSTREAM_NATIVE_END
#define BITSTREAM_STACK_ALLOCATION_SIZE   256
 Arbitrary size, just picking something likely to be larger than most packets.
#define BITS_TO_BYTES(x)   (((x)+7)>>3)
 Given a number of bits, return how many bytes are needed to represent that.


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.rakkarsoft.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 __BITSTREAM_NATIVE_END
 

Note:
__BITSTREAM_NATIVE_END should be defined by default for speed. Turn it off if you actually need endian swapping


Generated on Fri Apr 7 21:34:23 2006 for RakNet by  doxygen 1.4.6-NO