Table of Contents

Class BitReader

Namespace
NLightning.Common.BitUtils
Assembly
NLightning.Common.dll
public class BitReader : IDisposable
Inheritance
BitReader
Implements
Inherited Members

Constructors

BitReader(byte[])

public BitReader(byte[] buffer)

Parameters

buffer byte[]

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

~BitReader()

protected ~BitReader()

HasMoreBits(int)

public bool HasMoreBits(int requiredBits)

Parameters

requiredBits int

Returns

bool

ReadBit()

public bool ReadBit()

Returns

bool

ReadBits(Span<byte>, int)

public int ReadBits(Span<byte> value, int bitLength)

Parameters

value Span<byte>
bitLength int

Returns

int

ReadBits(Span<byte>, int, int)

public int ReadBits(Span<byte> value, int valueOffset, int bitLength)

Parameters

value Span<byte>
valueOffset int
bitLength int

Returns

int

ReadByteFromBits(int)

public byte ReadByteFromBits(int bits)

Parameters

bits int

Returns

byte

ReadInt16FromBits(int, bool)

public short ReadInt16FromBits(int bits, bool bigEndian = true)

Parameters

bits int
bigEndian bool

Returns

short

ReadInt32FromBits(int, bool)

public int ReadInt32FromBits(int bits, bool bigEndian = true)

Parameters

bits int
bigEndian bool

Returns

int

ReadInt64FromBits(int, bool)

public long ReadInt64FromBits(int bits, bool bigEndian = true)

Parameters

bits int
bigEndian bool

Returns

long

ReadUInt16FromBits(int, bool)

public ushort ReadUInt16FromBits(int bits, bool bigEndian = true)

Parameters

bits int
bigEndian bool

Returns

ushort

SkipBits(int)

public void SkipBits(int v)

Parameters

v int