Class BitBuffer
- Namespace
- Netick
- Assembly
- Netick.dll
public sealed class BitBuffer
- Inheritance
-
BitBuffer
- Inherited Members
-
Constructors
BitBuffer(int, bool)
public BitBuffer(int capacity = 875, bool createChunks = true)
Parameters
capacity
int
createChunks
bool
Fields
ReadPosition
Field Value
- int
WritePos
Field Value
- int
Properties
IsFinished
public bool IsFinished { get; }
Property Value
- bool
Methods
Add(int, uint)
public void Add(int numBits, uint value)
Parameters
numBits
int
value
uint
AddBool(bool)
public BitBuffer AddBool(bool value)
Parameters
value
bool
Returns
- BitBuffer
AddByte(byte)
public BitBuffer AddByte(byte value)
Parameters
value
byte
Returns
- BitBuffer
AddInt(int)
public void AddInt(int value)
Parameters
value
int
AddInt4(int)
public void AddInt4(int value)
Parameters
value
int
AddLong(long)
public BitBuffer AddLong(long value)
Parameters
value
long
Returns
- BitBuffer
AddShort(short)
public BitBuffer AddShort(short value)
Parameters
value
short
Returns
- BitBuffer
AddUInt(uint)
public void AddUInt(uint value)
Parameters
value
uint
AddUInt4(uint)
public void AddUInt4(uint value)
Parameters
value
uint
AddULong(ulong)
public BitBuffer AddULong(ulong value)
Parameters
value
ulong
Returns
- BitBuffer
AddUShort(ushort)
public BitBuffer AddUShort(ushort value)
Parameters
value
ushort
Returns
- BitBuffer
Clear()
~BitBuffer()
FlexAddUInt(uint, uint, uint, int)
public void FlexAddUInt(uint value, uint x1, uint x2, int stepSize)
Parameters
value
uint
x1
uint
x2
uint
stepSize
int
FlexReadUInt_(uint, uint, int)
public uint FlexReadUInt_(uint x1, uint x2, int stepSize)
Parameters
x1
uint
x2
uint
stepSize
int
Returns
- uint
Insert(int, int, uint)
public void Insert(int position, int numBits, uint value)
Parameters
position
int
numBits
int
value
uint
Length()
Returns
- int
Peek(int)
public uint Peek(int numBits)
Parameters
numBits
int
Returns
- uint
PeekBool()
Returns
- bool
PeekByte()
Returns
- byte
PeekInt()
Returns
- int
PeekLong()
Returns
- long
PeekShort()
Returns
- short
PeekUInt()
Returns
- uint
PeekULong()
Returns
- ulong
PeekUShort()
public ushort PeekUShort()
Returns
- ushort
Read(int)
public uint Read(int numBits)
Parameters
numBits
int
Returns
- uint
ReadBool()
Returns
- bool
ReadByte()
Returns
- byte
ReadInt()
Returns
- int
ReadInt4()
Returns
- int
ReadLong()
Returns
- long
ReadShort()
Returns
- short
ReadUInt()
Returns
- uint
ReadUInt4()
Returns
- uint
ReadULong()
Returns
- ulong
ReadUShort()
public ushort ReadUShort()
Returns
- ushort
SetFrom(byte*, int, int)
public void SetFrom(byte* source, int len, int bufferSize)
Parameters
source
byte*
len
int
bufferSize
int