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
ReadBit()
public bool ReadBit()
Returns
ReadBits(Span<byte>, int)
public int ReadBits(Span<byte> value, int bitLength)
Parameters
Returns
ReadBits(Span<byte>, int, int)
public int ReadBits(Span<byte> value, int valueOffset, int bitLength)
Parameters
Returns
ReadByteFromBits(int)
public byte ReadByteFromBits(int bits)
Parameters
bits
int
Returns
ReadInt16FromBits(int, bool)
public short ReadInt16FromBits(int bits, bool bigEndian = true)
Parameters
Returns
ReadInt32FromBits(int, bool)
public int ReadInt32FromBits(int bits, bool bigEndian = true)
Parameters
Returns
ReadInt64FromBits(int, bool)
public long ReadInt64FromBits(int bits, bool bigEndian = true)
Parameters
Returns
ReadUInt16FromBits(int, bool)
public ushort ReadUInt16FromBits(int bits, bool bigEndian = true)
Parameters
Returns
SkipBits(int)
public void SkipBits(int v)
Parameters
v
int