Inherits IDisposable.

Public Member Functions

virtual void Dispose ()
 
bool Read (out string varString)
 
bool Read (byte[] inOutByteArray, uint numberOfBytes)
 
bool Read (out char outTemplateVar)
 
bool ReadCompressed (out char outTemplateVar)
 
bool ReadCompressedDelta (out char outTemplateVar)
 
bool ReadDelta (out char outTemplateVar)
 
bool ReadCompressed (out string var)
 
bool ReadCompressedDelta (out string var)
 
bool ReadDelta (out string var)
 
uint CopyData (out byte[] outByteArray)
 
byte[] GetData ()
 
void PrintBits (out string var)
 
void PrintHex (out string var)
 
bool Serialize (bool WriteToBitstream, ref char inOutTemplateVar)
 
bool SerializeDelta (bool WriteToBitstream, ref char inOutTemplateVar)
 
bool SerializeCompressed (bool WriteToBitstream, ref char inOutTemplateVar)
 
bool SerializeCompressedDelta (bool WriteToBitstream, ref char inOutTemplateVar)
 
bool ReadAlignedBytesSafeAlloc (out byte[] outByteArray, int inputLength, int maxBytesToRead)
 
bool ReadAlignedBytesSafeAlloc (out byte[] outByteArray, uint inputLength, uint maxBytesToRead)
 
 BitStream (uint initialBytesToAllocate)
 
 BitStream (byte[] _data, uint lengthInBytes, bool _copyData)
 
void Reset ()
 
bool SerializeFloat16 (bool writeToBitstream, ref float inOutFloat, float floatMin, float floatMax)
 
bool SerializeBits (bool writeToBitstream, byte[] inOutByteArray, uint numberOfBitsToSerialize, bool rightAlignedBits)
 
bool SerializeBits (bool writeToBitstream, byte[] inOutByteArray, uint numberOfBitsToSerialize)
 
bool Read (BitStream bitStream, uint numberOfBits)
 
bool Read (BitStream bitStream)
 
void Write (BitStream bitStream, uint numberOfBits)
 
void Write (BitStream bitStream)
 
void WriteFloat16 (float x, float floatMin, float floatMax)
 
bool ReadFloat16 (out float outFloat, float floatMin, float floatMax)
 
void ResetReadPointer ()
 
void ResetWritePointer ()
 
void AssertStreamEmpty ()
 
void PrintBits ()
 
void PrintHex ()
 
void IgnoreBits (uint numberOfBits)
 
void IgnoreBytes (uint numberOfBytes)
 
void SetWriteOffset (uint offset)
 
uint GetNumberOfBitsUsed ()
 
uint GetWriteOffset ()
 
uint GetNumberOfBytesUsed ()
 
uint GetReadOffset ()
 
void SetReadOffset (uint newReadOffset)
 
uint GetNumberOfUnreadBits ()
 
void SetData (byte[] inByteArray)
 
void WriteBits (byte[] inByteArray, uint numberOfBitsToWrite, bool rightAlignedBits)
 
void WriteBits (byte[] inByteArray, uint numberOfBitsToWrite)
 
void WriteAlignedBytes (byte[] inByteArray, uint numberOfBytesToWrite)
 
void EndianSwapBytes (int byteOffset, int length)
 
bool ReadAlignedBytes (byte[] inOutByteArray, uint numberOfBytesToRead)
 
void AlignWriteToByteBoundary ()
 
void AlignReadToByteBoundary ()
 
bool ReadBits (byte[] inOutByteArray, uint numberOfBitsToRead, bool alignBitsToRight)
 
bool ReadBits (byte[] inOutByteArray, uint numberOfBitsToRead)
 
void Write0 ()
 
void Write1 ()
 
bool ReadBit ()
 
void AssertCopyData ()
 
void SetNumberOfBitsAllocated (uint lengthInBits)
 
void AddBitsAndReallocate (uint numberOfBitsToWrite)
 
uint GetNumberOfBitsAllocated ()
 
void PadWithZeroToByteLength (uint bytes)
 
void Write (string inStringVar)
 
void Write (SWIGTYPE_p_wchar_t inStringVar)
 
void WriteCompressed (string inStringVar)
 
void WriteCompressed (SWIGTYPE_p_wchar_t inStringVar)
 
void Write (byte[] inputByteArray, uint numberOfBytes)
 
void Serialize (bool writeToBitstream, byte[] inputByteArray, uint numberOfBytes)
 
bool ReadAlignedBytesSafe (byte[] inOutByteArray, int inputLength, int maxBytesToRead)
 
bool ReadAlignedBytesSafe (byte[] inOutByteArray, uint inputLength, uint maxBytesToRead)
 
void WriteAlignedVar8 (byte[] inByteArray)
 
bool ReadAlignedVar8 (byte[] inOutByteArray)
 
void WriteAlignedVar16 (byte[] inByteArray)
 
bool ReadAlignedVar16 (byte[] inOutByteArray)
 
void WriteAlignedVar32 (byte[] inByteArray)
 
bool ReadAlignedVar32 (byte[] inOutByteArray)
 
void WriteAlignedBytesSafe (byte[] inByteArray, uint inputLength, uint maxBytesToWrite)
 
bool Serialize (bool writeToBitstream, ref bool inOutTemplateVar)
 
bool Serialize (bool writeToBitstream, ref byte inOutTemplateVar)
 
bool Serialize (bool writeToBitstream, ref short inOutTemplateVar)
 
bool Serialize (bool writeToBitstream, ref ushort inOutTemplateVar)
 
bool Serialize (bool writeToBitstream, ref int inOutTemplateVar)
 
bool Serialize (bool writeToBitstream, ref long inOutTemplateVar)
 
bool Serialize (bool writeToBitstream, ref float inOutTemplateVar)
 
bool Serialize (bool writeToBitstream, RakString inOutTemplateVar)
 
bool Serialize (bool writeToBitstream, RakNetGUID inOutTemplateVar)
 
bool Serialize (bool writeToBitstream, uint24_t inOutTemplateVar)
 
bool SerializeDelta (bool writeToBitstream, ref bool inOutCurrentValue, bool lastValue)
 
bool SerializeDelta (bool writeToBitstream, ref bool inOutCurrentValue)
 
bool SerializeDelta (bool writeToBitstream, ref byte inOutCurrentValue, byte lastValue)
 
bool SerializeDelta (bool writeToBitstream, ref byte inOutCurrentValue)
 
bool SerializeDelta (bool writeToBitstream, ref short inOutCurrentValue, short lastValue)
 
bool SerializeDelta (bool writeToBitstream, ref short inOutCurrentValue)
 
bool SerializeDelta (bool writeToBitstream, ref ushort inOutCurrentValue, ushort lastValue)
 
bool SerializeDelta (bool writeToBitstream, ref ushort inOutCurrentValue)
 
bool SerializeDelta (bool writeToBitstream, ref int inOutCurrentValue, int lastValue)
 
bool SerializeDelta (bool writeToBitstream, ref int inOutCurrentValue)
 
bool SerializeDelta (bool writeToBitstream, ref long inOutCurrentValue, long lastValue)
 
bool SerializeDelta (bool writeToBitstream, ref long inOutCurrentValue)
 
bool SerializeDelta (bool writeToBitstream, ref float inOutCurrentValue, float lastValue)
 
bool SerializeDelta (bool writeToBitstream, ref float inOutCurrentValue)
 
bool SerializeDelta (bool writeToBitstream, RakString inOutCurrentValue, RakString lastValue)
 
bool SerializeDelta (bool writeToBitstream, RakString inOutCurrentValue)
 
bool SerializeDelta (bool writeToBitstream, RakNetGUID inOutCurrentValue, RakNetGUID lastValue)
 
bool SerializeDelta (bool writeToBitstream, RakNetGUID inOutCurrentValue)
 
bool SerializeDelta (bool writeToBitstream, uint24_t inOutCurrentValue, uint24_t lastValue)
 
bool SerializeDelta (bool writeToBitstream, uint24_t inOutCurrentValue)
 
bool SerializeCompressed (bool writeToBitstream, ref bool inOutTemplateVar)
 
bool SerializeCompressed (bool writeToBitstream, ref byte inOutTemplateVar)
 
bool SerializeCompressed (bool writeToBitstream, ref short inOutTemplateVar)
 
bool SerializeCompressed (bool writeToBitstream, ref ushort inOutTemplateVar)
 
bool SerializeCompressed (bool writeToBitstream, ref int inOutTemplateVar)
 
bool SerializeCompressed (bool writeToBitstream, ref long inOutTemplateVar)
 
bool SerializeCompressed (bool writeToBitstream, ref float inOutTemplateVar)
 
bool SerializeCompressed (bool writeToBitstream, RakString inOutTemplateVar)
 
bool SerializeCompressed (bool writeToBitstream, RakNetGUID inOutTemplateVar)
 
bool SerializeCompressed (bool writeToBitstream, uint24_t inOutTemplateVar)
 
bool SerializeCompressedDelta (bool writeToBitstream, ref bool inOutCurrentValue, bool lastValue)
 
bool SerializeCompressedDelta (bool writeToBitstream, ref bool inOutTemplateVar)
 
bool SerializeCompressedDelta (bool writeToBitstream, ref byte inOutCurrentValue, byte lastValue)
 
bool SerializeCompressedDelta (bool writeToBitstream, ref byte inOutTemplateVar)
 
bool SerializeCompressedDelta (bool writeToBitstream, ref short inOutCurrentValue, short lastValue)
 
bool SerializeCompressedDelta (bool writeToBitstream, ref short inOutTemplateVar)
 
bool SerializeCompressedDelta (bool writeToBitstream, ref ushort inOutCurrentValue, ushort lastValue)
 
bool SerializeCompressedDelta (bool writeToBitstream, ref ushort inOutTemplateVar)
 
bool SerializeCompressedDelta (bool writeToBitstream, ref int inOutCurrentValue, int lastValue)
 
bool SerializeCompressedDelta (bool writeToBitstream, ref int inOutTemplateVar)
 
bool SerializeCompressedDelta (bool writeToBitstream, ref long inOutCurrentValue, long lastValue)
 
bool SerializeCompressedDelta (bool writeToBitstream, ref long inOutTemplateVar)
 
bool SerializeCompressedDelta (bool writeToBitstream, ref float inOutCurrentValue, float lastValue)
 
bool SerializeCompressedDelta (bool writeToBitstream, ref float inOutTemplateVar)
 
bool SerializeCompressedDelta (bool writeToBitstream, RakString inOutCurrentValue, RakString lastValue)
 
bool SerializeCompressedDelta (bool writeToBitstream, RakString inOutTemplateVar)
 
bool SerializeCompressedDelta (bool writeToBitstream, RakNetGUID inOutCurrentValue, RakNetGUID lastValue)
 
bool SerializeCompressedDelta (bool writeToBitstream, RakNetGUID inOutTemplateVar)
 
bool SerializeCompressedDelta (bool writeToBitstream, uint24_t inOutCurrentValue, uint24_t lastValue)
 
bool SerializeCompressedDelta (bool writeToBitstream, uint24_t inOutTemplateVar)
 
void Write (bool inTemplateVar)
 
void Write (byte inTemplateVar)
 
void Write (char inTemplateVar)
 
void Write (short inTemplateVar)
 
void Write (ushort inTemplateVar)
 
void Write (int inTemplateVar)
 
void Write (long inTemplateVar)
 
void Write (float inTemplateVar)
 
void Write (RakString inTemplateVar)
 
void Write (RakNetGUID inTemplateVar)
 
void Write (uint24_t inTemplateVar)
 
void WriteDelta (string currentValue, string lastValue)
 
void WriteDelta (string currentValue)
 
void WriteDelta (bool currentValue, bool lastValue)
 
void WriteDelta (bool currentValue)
 
void WriteDelta (byte currentValue, byte lastValue)
 
void WriteDelta (byte currentValue)
 
void WriteDelta (char currentValue, char lastValue)
 
void WriteDelta (char currentValue)
 
void WriteDelta (short currentValue, short lastValue)
 
void WriteDelta (short currentValue)
 
void WriteDelta (ushort currentValue, ushort lastValue)
 
void WriteDelta (ushort currentValue)
 
void WriteDelta (int currentValue, int lastValue)
 
void WriteDelta (int currentValue)
 
void WriteDelta (long currentValue, long lastValue)
 
void WriteDelta (long currentValue)
 
void WriteDelta (float currentValue, float lastValue)
 
void WriteDelta (float currentValue)
 
void WriteDelta (RakString currentValue, RakString lastValue)
 
void WriteDelta (RakString currentValue)
 
void WriteDelta (RakNetGUID currentValue, RakNetGUID lastValue)
 
void WriteDelta (RakNetGUID currentValue)
 
void WriteDelta (uint24_t currentValue, uint24_t lastValue)
 
void WriteDelta (uint24_t currentValue)
 
void WriteCompressed (bool inTemplateVar)
 
void WriteCompressed (byte inTemplateVar)
 
void WriteCompressed (char inTemplateVar)
 
void WriteCompressed (short inTemplateVar)
 
void WriteCompressed (ushort inTemplateVar)
 
void WriteCompressed (int inTemplateVar)
 
void WriteCompressed (long inTemplateVar)
 
void WriteCompressed (float inTemplateVar)
 
void WriteCompressed (RakString inTemplateVar)
 
void WriteCompressed (RakNetGUID inTemplateVar)
 
void WriteCompressed (uint24_t inTemplateVar)
 
void WriteCompressedDelta (string currentValue, string lastValue)
 
void WriteCompressedDelta (string currentValue)
 
void WriteCompressedDelta (bool currentValue, bool lastValue)
 
void WriteCompressedDelta (bool currentValue)
 
void WriteCompressedDelta (byte currentValue, byte lastValue)
 
void WriteCompressedDelta (byte currentValue)
 
void WriteCompressedDelta (char currentValue, char lastValue)
 
void WriteCompressedDelta (char currentValue)
 
void WriteCompressedDelta (short currentValue, short lastValue)
 
void WriteCompressedDelta (short currentValue)
 
void WriteCompressedDelta (ushort currentValue, ushort lastValue)
 
void WriteCompressedDelta (ushort currentValue)
 
void WriteCompressedDelta (int currentValue, int lastValue)
 
void WriteCompressedDelta (int currentValue)
 
void WriteCompressedDelta (long currentValue, long lastValue)
 
void WriteCompressedDelta (long currentValue)
 
void WriteCompressedDelta (float currentValue, float lastValue)
 
void WriteCompressedDelta (float currentValue)
 
void WriteCompressedDelta (RakString currentValue, RakString lastValue)
 
void WriteCompressedDelta (RakString currentValue)
 
void WriteCompressedDelta (RakNetGUID currentValue, RakNetGUID lastValue)
 
void WriteCompressedDelta (RakNetGUID currentValue)
 
void WriteCompressedDelta (uint24_t currentValue, uint24_t lastValue)
 
void WriteCompressedDelta (uint24_t currentValue)
 
bool Read (out bool outTemplateVar)
 
bool Read (out byte outTemplateVar)
 
bool Read (out short outTemplateVar)
 
bool Read (SWIGTYPE_p_unsigned_short outTemplateVar)
 
bool Read (out int outTemplateVar)
 
bool Read (out long outTemplateVar)
 
bool Read (out float outTemplateVar)
 
bool Read (RakString outTemplateVar)
 
bool Read (RakNetGUID outTemplateVar)
 
bool Read (uint24_t outTemplateVar)
 
bool ReadDelta (out bool outTemplateVar)
 
bool ReadDelta (out byte outTemplateVar)
 
bool ReadDelta (out short outTemplateVar)
 
bool ReadDelta (SWIGTYPE_p_unsigned_short outTemplateVar)
 
bool ReadDelta (out int outTemplateVar)
 
bool ReadDelta (out long outTemplateVar)
 
bool ReadDelta (out float outTemplateVar)
 
bool ReadDelta (RakString outTemplateVar)
 
bool ReadDelta (RakNetGUID outTemplateVar)
 
bool ReadDelta (uint24_t outTemplateVar)
 
bool ReadCompressed (out bool outTemplateVar)
 
bool ReadCompressed (out byte outTemplateVar)
 
bool ReadCompressed (out short outTemplateVar)
 
bool ReadCompressed (SWIGTYPE_p_unsigned_short outTemplateVar)
 
bool ReadCompressed (out int outTemplateVar)
 
bool ReadCompressed (out long outTemplateVar)
 
bool ReadCompressed (out float outTemplateVar)
 
bool ReadCompressed (RakString outTemplateVar)
 
bool ReadCompressed (RakNetGUID outTemplateVar)
 
bool ReadCompressed (uint24_t outTemplateVar)
 
bool ReadCompressedDelta (out bool outTemplateVar)
 
bool ReadCompressedDelta (out byte outTemplateVar)
 
bool ReadCompressedDelta (out short outTemplateVar)
 
bool ReadCompressedDelta (SWIGTYPE_p_unsigned_short outTemplateVar)
 
bool ReadCompressedDelta (out int outTemplateVar)
 
bool ReadCompressedDelta (out long outTemplateVar)
 
bool ReadCompressedDelta (out float outTemplateVar)
 
bool ReadCompressedDelta (RakString outTemplateVar)
 
bool ReadCompressedDelta (RakNetGUID outTemplateVar)
 
bool ReadCompressedDelta (uint24_t outTemplateVar)
 

Static Public Member Functions

static BitStream GetInstance ()
 
static void DestroyInstance (BitStream i)
 
static int NumberOfLeadingZeroes (byte x)
 
static int NumberOfLeadingZeroes (ushort x)
 
static int NumberOfLeadingZeroes (uint x)
 
static int NumberOfLeadingZeroes (ulong x)
 
static int NumberOfLeadingZeroes (sbyte x)
 
static int NumberOfLeadingZeroes (short x)
 
static int NumberOfLeadingZeroes (int x)
 
static int NumberOfLeadingZeroes (long x)
 
static bool DoEndianSwap ()
 
static bool IsBigEndian ()
 
static bool IsNetworkOrder ()
 
static bool IsNetworkOrderInternal ()
 
static void ReverseBytes (byte[] inByteArray, byte[] inOutByteArray, uint length)
 
static void ReverseBytesInPlace (byte[] inOutData, uint length)
 

Protected Attributes

bool swigCMemOwn
 

The documentation for this class was generated from the following file:
  • Raknet.scharp/BitStream.cs