Table of Contents

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

public int ReadPosition

Field Value

int

WritePos

public 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()

public void Clear()

~BitBuffer()

protected ~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()

public int Length()

Returns

int

Peek(int)

public uint Peek(int numBits)

Parameters

numBits int

Returns

uint

PeekBool()

public bool PeekBool()

Returns

bool

PeekByte()

public byte PeekByte()

Returns

byte

PeekInt()

public int PeekInt()

Returns

int

PeekLong()

public long PeekLong()

Returns

long

PeekShort()

public short PeekShort()

Returns

short

PeekUInt()

public uint PeekUInt()

Returns

uint

PeekULong()

public ulong PeekULong()

Returns

ulong

PeekUShort()

public ushort PeekUShort()

Returns

ushort

Read(int)

public uint Read(int numBits)

Parameters

numBits int

Returns

uint

ReadBool()

public bool ReadBool()

Returns

bool

ReadByte()

public byte ReadByte()

Returns

byte

ReadInt()

public int ReadInt()

Returns

int

ReadInt4()

public int ReadInt4()

Returns

int

ReadLong()

public long ReadLong()

Returns

long

ReadShort()

public short ReadShort()

Returns

short

ReadUInt()

public uint ReadUInt()

Returns

uint

ReadUInt4()

public uint ReadUInt4()

Returns

uint

ReadULong()

public ulong 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