Table of Contents

Class BitReader

Namespace
GstBase
Assembly
GstBase-1.0.dll
public sealed class BitReader
Inheritance
BitReader
Inherited Members

Constructors

BitReader()

public BitReader()

BitReader(BitReaderOwnedHandle)

public BitReader(BitReaderOwnedHandle handle)

Parameters

handle BitReaderOwnedHandle

Properties

Bit

public uint Bit { get; set; }

Property Value

uint

Byte

public uint Byte { get; set; }

Property Value

uint

Handle

public BitReaderOwnedHandle Handle { get; }

Property Value

BitReaderOwnedHandle

Size

public uint Size { get; set; }

Property Value

uint

Methods

Equals(BitReader?)

public bool Equals(BitReader? other)

Parameters

other BitReader

Returns

bool

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetBitsUint16(out ushort, uint)

public bool GetBitsUint16(out ushort val, uint nbits)

Parameters

val ushort
nbits uint

Returns

bool

GetBitsUint32(out uint, uint)

public bool GetBitsUint32(out uint val, uint nbits)

Parameters

val uint
nbits uint

Returns

bool

GetBitsUint64(out ulong, uint)

public bool GetBitsUint64(out ulong val, uint nbits)

Parameters

val ulong
nbits uint

Returns

bool

GetBitsUint8(out byte, uint)

public bool GetBitsUint8(out byte val, uint nbits)

Parameters

val byte
nbits uint

Returns

bool

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetPos()

public uint GetPos()

Returns

uint

GetRemaining()

public uint GetRemaining()

Returns

uint

GetSize()

public uint GetSize()

Returns

uint

Init(Span<byte>)

public void Init(Span<byte> data)

Parameters

data Span<byte>

New(Span<byte>)

public static BitReader New(Span<byte> data)

Parameters

data Span<byte>

Returns

BitReader

PeekBitsUint16(out ushort, uint)

public bool PeekBitsUint16(out ushort val, uint nbits)

Parameters

val ushort
nbits uint

Returns

bool

PeekBitsUint32(out uint, uint)

public bool PeekBitsUint32(out uint val, uint nbits)

Parameters

val uint
nbits uint

Returns

bool

PeekBitsUint64(out ulong, uint)

public bool PeekBitsUint64(out ulong val, uint nbits)

Parameters

val ulong
nbits uint

Returns

bool

PeekBitsUint8(out byte, uint)

public bool PeekBitsUint8(out byte val, uint nbits)

Parameters

val byte
nbits uint

Returns

bool

SetPos(uint)

public bool SetPos(uint pos)

Parameters

pos uint

Returns

bool

Skip(uint)

public bool Skip(uint nbits)

Parameters

nbits uint

Returns

bool

SkipToByte()

public bool SkipToByte()

Returns

bool