Table of Contents

Class ByteReader

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

Constructors

ByteReader()

public ByteReader()

ByteReader(ByteReaderOwnedHandle)

public ByteReader(ByteReaderOwnedHandle handle)

Parameters

handle ByteReaderOwnedHandle

Properties

Byte

public uint Byte { get; set; }

Property Value

uint

Handle

public ByteReaderOwnedHandle Handle { get; }

Property Value

ByteReaderOwnedHandle

Size

public uint Size { get; set; }

Property Value

uint

Methods

DupStringUtf8(out string[])

public bool DupStringUtf8(out string[] str)

Parameters

str string[]

Returns

bool

Equals(ByteReader?)

public bool Equals(ByteReader? other)

Parameters

other ByteReader

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.

GetFloat32Be(out float)

public bool GetFloat32Be(out float val)

Parameters

val float

Returns

bool

GetFloat32Le(out float)

public bool GetFloat32Le(out float val)

Parameters

val float

Returns

bool

GetFloat64Be(out double)

public bool GetFloat64Be(out double val)

Parameters

val double

Returns

bool

GetFloat64Le(out double)

public bool GetFloat64Le(out double val)

Parameters

val double

Returns

bool

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetInt16Be(out short)

public bool GetInt16Be(out short val)

Parameters

val short

Returns

bool

GetInt16Le(out short)

public bool GetInt16Le(out short val)

Parameters

val short

Returns

bool

GetInt24Be(out int)

public bool GetInt24Be(out int val)

Parameters

val int

Returns

bool

GetInt24Le(out int)

public bool GetInt24Le(out int val)

Parameters

val int

Returns

bool

GetInt32Be(out int)

public bool GetInt32Be(out int val)

Parameters

val int

Returns

bool

GetInt32Le(out int)

public bool GetInt32Le(out int val)

Parameters

val int

Returns

bool

GetInt64Be(out long)

public bool GetInt64Be(out long val)

Parameters

val long

Returns

bool

GetInt64Le(out long)

public bool GetInt64Le(out long val)

Parameters

val long

Returns

bool

GetInt8(out sbyte)

public bool GetInt8(out sbyte val)

Parameters

val sbyte

Returns

bool

GetPos()

public uint GetPos()

Returns

uint

GetRemaining()

public uint GetRemaining()

Returns

uint

GetSize()

public uint GetSize()

Returns

uint

GetStringUtf8(out string[])

public bool GetStringUtf8(out string[] str)

Parameters

str string[]

Returns

bool

GetSubReader(ByteReader, uint)

[Version("1.6")]
public bool GetSubReader(ByteReader subReader, uint size)

Parameters

subReader ByteReader
size uint

Returns

bool

GetUint16Be(out ushort)

public bool GetUint16Be(out ushort val)

Parameters

val ushort

Returns

bool

GetUint16Le(out ushort)

public bool GetUint16Le(out ushort val)

Parameters

val ushort

Returns

bool

GetUint24Be(out uint)

public bool GetUint24Be(out uint val)

Parameters

val uint

Returns

bool

GetUint24Le(out uint)

public bool GetUint24Le(out uint val)

Parameters

val uint

Returns

bool

GetUint32Be(out uint)

public bool GetUint32Be(out uint val)

Parameters

val uint

Returns

bool

GetUint32Le(out uint)

public bool GetUint32Le(out uint val)

Parameters

val uint

Returns

bool

GetUint64Be(out ulong)

public bool GetUint64Be(out ulong val)

Parameters

val ulong

Returns

bool

GetUint64Le(out ulong)

public bool GetUint64Le(out ulong val)

Parameters

val ulong

Returns

bool

GetUint8(out byte)

public bool GetUint8(out byte val)

Parameters

val byte

Returns

bool

Init(Span<byte>)

public void Init(Span<byte> data)

Parameters

data Span<byte>

MaskedScanUint32(uint, uint, uint, uint)

public uint MaskedScanUint32(uint mask, uint pattern, uint offset, uint size)

Parameters

mask uint
pattern uint
offset uint
size uint

Returns

uint

MaskedScanUint32Peek(uint, uint, uint, uint, out uint)

[Version("1.6")]
public uint MaskedScanUint32Peek(uint mask, uint pattern, uint offset, uint size, out uint value)

Parameters

mask uint
pattern uint
offset uint
size uint
value uint

Returns

uint

New(Span<byte>)

public static ByteReader New(Span<byte> data)

Parameters

data Span<byte>

Returns

ByteReader

PeekFloat32Be(out float)

public bool PeekFloat32Be(out float val)

Parameters

val float

Returns

bool

PeekFloat32Le(out float)

public bool PeekFloat32Le(out float val)

Parameters

val float

Returns

bool

PeekFloat64Be(out double)

public bool PeekFloat64Be(out double val)

Parameters

val double

Returns

bool

PeekFloat64Le(out double)

public bool PeekFloat64Le(out double val)

Parameters

val double

Returns

bool

PeekInt16Be(out short)

public bool PeekInt16Be(out short val)

Parameters

val short

Returns

bool

PeekInt16Le(out short)

public bool PeekInt16Le(out short val)

Parameters

val short

Returns

bool

PeekInt24Be(out int)

public bool PeekInt24Be(out int val)

Parameters

val int

Returns

bool

PeekInt24Le(out int)

public bool PeekInt24Le(out int val)

Parameters

val int

Returns

bool

PeekInt32Be(out int)

public bool PeekInt32Be(out int val)

Parameters

val int

Returns

bool

PeekInt32Le(out int)

public bool PeekInt32Le(out int val)

Parameters

val int

Returns

bool

PeekInt64Be(out long)

public bool PeekInt64Be(out long val)

Parameters

val long

Returns

bool

PeekInt64Le(out long)

public bool PeekInt64Le(out long val)

Parameters

val long

Returns

bool

PeekInt8(out sbyte)

public bool PeekInt8(out sbyte val)

Parameters

val sbyte

Returns

bool

PeekStringUtf8(out string[])

public bool PeekStringUtf8(out string[] str)

Parameters

str string[]

Returns

bool

PeekSubReader(ByteReader, uint)

[Version("1.6")]
public bool PeekSubReader(ByteReader subReader, uint size)

Parameters

subReader ByteReader
size uint

Returns

bool

PeekUint16Be(out ushort)

public bool PeekUint16Be(out ushort val)

Parameters

val ushort

Returns

bool

PeekUint16Le(out ushort)

public bool PeekUint16Le(out ushort val)

Parameters

val ushort

Returns

bool

PeekUint24Be(out uint)

public bool PeekUint24Be(out uint val)

Parameters

val uint

Returns

bool

PeekUint24Le(out uint)

public bool PeekUint24Le(out uint val)

Parameters

val uint

Returns

bool

PeekUint32Be(out uint)

public bool PeekUint32Be(out uint val)

Parameters

val uint

Returns

bool

PeekUint32Le(out uint)

public bool PeekUint32Le(out uint val)

Parameters

val uint

Returns

bool

PeekUint64Be(out ulong)

public bool PeekUint64Be(out ulong val)

Parameters

val ulong

Returns

bool

PeekUint64Le(out ulong)

public bool PeekUint64Le(out ulong val)

Parameters

val ulong

Returns

bool

PeekUint8(out byte)

public bool PeekUint8(out byte val)

Parameters

val byte

Returns

bool

SetPos(uint)

public bool SetPos(uint pos)

Parameters

pos uint

Returns

bool

Skip(uint)

public bool Skip(uint nbytes)

Parameters

nbytes uint

Returns

bool

SkipStringUtf16()

public bool SkipStringUtf16()

Returns

bool

SkipStringUtf32()

public bool SkipStringUtf32()

Returns

bool

SkipStringUtf8()

public bool SkipStringUtf8()

Returns

bool