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 licence agreement. "Shareware" Licensees with Rakkarsoft LLC are subject to the shareware license found at http://www.rakkarsoft.com/shareWareLicense.html "Commercial" Licensees are subject to the commercial license found at http://www.rakkarsoft.com/sourceCodeLicense.html Custom license users are subject to the terms therein. All other 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 Mon Mar 20 20:32:54 2006 for RakNet by  doxygen 1.4.6-NO