Table of Contents

Class BitWriter

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

Constructors

BitWriter()

public BitWriter()

BitWriter(BitWriterOwnedHandle)

public BitWriter(BitWriterOwnedHandle handle)

Parameters

handle BitWriterOwnedHandle

Properties

BitSize

public uint BitSize { get; set; }

Property Value

uint

Data

public IntPtr Data { get; set; }

Property Value

IntPtr

Handle

public BitWriterOwnedHandle Handle { get; }

Property Value

BitWriterOwnedHandle

Methods

AlignBytes(byte)

public bool AlignBytes(byte trailingBit)

Parameters

trailingBit byte

Returns

bool

Equals(BitWriter?)

public bool Equals(BitWriter? other)

Parameters

other BitWriter

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.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetRemaining()

public uint GetRemaining()

Returns

uint

GetSize()

public uint GetSize()

Returns

uint

Init()

public void Init()

InitWithData(Span<byte>, bool)

public void InitWithData(Span<byte> data, bool initialized)

Parameters

data Span<byte>
initialized bool

InitWithSize(uint, bool)

public void InitWithSize(uint size, bool @fixed)

Parameters

size uint
fixed bool

New()

public static BitWriter New()

Returns

BitWriter

NewWithData(Span<byte>, bool)

public static BitWriter NewWithData(Span<byte> data, bool initialized)

Parameters

data Span<byte>
initialized bool

Returns

BitWriter

NewWithSize(uint, bool)

public static BitWriter NewWithSize(uint size, bool @fixed)

Parameters

size uint
fixed bool

Returns

BitWriter

PutBitsUint16(ushort, uint)

public bool PutBitsUint16(ushort value, uint nbits)

Parameters

value ushort
nbits uint

Returns

bool

PutBitsUint32(uint, uint)

public bool PutBitsUint32(uint value, uint nbits)

Parameters

value uint
nbits uint

Returns

bool

PutBitsUint64(ulong, uint)

public bool PutBitsUint64(ulong value, uint nbits)

Parameters

value ulong
nbits uint

Returns

bool

PutBitsUint8(byte, uint)

public bool PutBitsUint8(byte value, uint nbits)

Parameters

value byte
nbits uint

Returns

bool

Reset()

public void Reset()

ResetAndGetBuffer()

public Buffer ResetAndGetBuffer()

Returns

Buffer

SetPos(uint)

public bool SetPos(uint pos)

Parameters

pos uint

Returns

bool