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
Handle
public ByteReaderOwnedHandle Handle { get; }
Property Value
Size
public uint Size { get; set; }
Property Value
Methods
DupStringUtf8(out string[])
public bool DupStringUtf8(out string[] str)
Parameters
str
string[]
Returns
Equals(ByteReader?)
public bool Equals(ByteReader? other)
Parameters
other
ByteReader
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetFloat32Be(out float)
public bool GetFloat32Be(out float val)
Parameters
val
float
Returns
GetFloat32Le(out float)
public bool GetFloat32Le(out float val)
Parameters
val
float
Returns
GetFloat64Be(out double)
public bool GetFloat64Be(out double val)
Parameters
val
double
Returns
GetFloat64Le(out double)
public bool GetFloat64Le(out double val)
Parameters
val
double
Returns
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
GetInt16Le(out short)
public bool GetInt16Le(out short val)
Parameters
val
short
Returns
GetInt24Be(out int)
public bool GetInt24Be(out int val)
Parameters
val
int
Returns
GetInt24Le(out int)
public bool GetInt24Le(out int val)
Parameters
val
int
Returns
GetInt32Be(out int)
public bool GetInt32Be(out int val)
Parameters
val
int
Returns
GetInt32Le(out int)
public bool GetInt32Le(out int val)
Parameters
val
int
Returns
GetInt64Be(out long)
public bool GetInt64Be(out long val)
Parameters
val
long
Returns
GetInt64Le(out long)
public bool GetInt64Le(out long val)
Parameters
val
long
Returns
GetInt8(out sbyte)
public bool GetInt8(out sbyte val)
Parameters
val
sbyte
Returns
GetPos()
public uint GetPos()
Returns
GetRemaining()
public uint GetRemaining()
Returns
GetSize()
public uint GetSize()
Returns
GetStringUtf8(out string[])
public bool GetStringUtf8(out string[] str)
Parameters
str
string[]
Returns
GetSubReader(ByteReader, uint)
[Version("1.6")]
public bool GetSubReader(ByteReader subReader, uint size)
Parameters
subReader
ByteReadersize
uint
Returns
GetUint16Be(out ushort)
public bool GetUint16Be(out ushort val)
Parameters
val
ushort
Returns
GetUint16Le(out ushort)
public bool GetUint16Le(out ushort val)
Parameters
val
ushort
Returns
GetUint24Be(out uint)
public bool GetUint24Be(out uint val)
Parameters
val
uint
Returns
GetUint24Le(out uint)
public bool GetUint24Le(out uint val)
Parameters
val
uint
Returns
GetUint32Be(out uint)
public bool GetUint32Be(out uint val)
Parameters
val
uint
Returns
GetUint32Le(out uint)
public bool GetUint32Le(out uint val)
Parameters
val
uint
Returns
GetUint64Be(out ulong)
public bool GetUint64Be(out ulong val)
Parameters
val
ulong
Returns
GetUint64Le(out ulong)
public bool GetUint64Le(out ulong val)
Parameters
val
ulong
Returns
GetUint8(out byte)
public bool GetUint8(out byte val)
Parameters
val
byte
Returns
Init(Span<byte>)
public void Init(Span<byte> data)
Parameters
MaskedScanUint32(uint, uint, uint, uint)
public uint MaskedScanUint32(uint mask, uint pattern, uint offset, uint size)
Parameters
Returns
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
Returns
New(Span<byte>)
public static ByteReader New(Span<byte> data)
Parameters
Returns
PeekFloat32Be(out float)
public bool PeekFloat32Be(out float val)
Parameters
val
float
Returns
PeekFloat32Le(out float)
public bool PeekFloat32Le(out float val)
Parameters
val
float
Returns
PeekFloat64Be(out double)
public bool PeekFloat64Be(out double val)
Parameters
val
double
Returns
PeekFloat64Le(out double)
public bool PeekFloat64Le(out double val)
Parameters
val
double
Returns
PeekInt16Be(out short)
public bool PeekInt16Be(out short val)
Parameters
val
short
Returns
PeekInt16Le(out short)
public bool PeekInt16Le(out short val)
Parameters
val
short
Returns
PeekInt24Be(out int)
public bool PeekInt24Be(out int val)
Parameters
val
int
Returns
PeekInt24Le(out int)
public bool PeekInt24Le(out int val)
Parameters
val
int
Returns
PeekInt32Be(out int)
public bool PeekInt32Be(out int val)
Parameters
val
int
Returns
PeekInt32Le(out int)
public bool PeekInt32Le(out int val)
Parameters
val
int
Returns
PeekInt64Be(out long)
public bool PeekInt64Be(out long val)
Parameters
val
long
Returns
PeekInt64Le(out long)
public bool PeekInt64Le(out long val)
Parameters
val
long
Returns
PeekInt8(out sbyte)
public bool PeekInt8(out sbyte val)
Parameters
val
sbyte
Returns
PeekStringUtf8(out string[])
public bool PeekStringUtf8(out string[] str)
Parameters
str
string[]
Returns
PeekSubReader(ByteReader, uint)
[Version("1.6")]
public bool PeekSubReader(ByteReader subReader, uint size)
Parameters
subReader
ByteReadersize
uint
Returns
PeekUint16Be(out ushort)
public bool PeekUint16Be(out ushort val)
Parameters
val
ushort
Returns
PeekUint16Le(out ushort)
public bool PeekUint16Le(out ushort val)
Parameters
val
ushort
Returns
PeekUint24Be(out uint)
public bool PeekUint24Be(out uint val)
Parameters
val
uint
Returns
PeekUint24Le(out uint)
public bool PeekUint24Le(out uint val)
Parameters
val
uint
Returns
PeekUint32Be(out uint)
public bool PeekUint32Be(out uint val)
Parameters
val
uint
Returns
PeekUint32Le(out uint)
public bool PeekUint32Le(out uint val)
Parameters
val
uint
Returns
PeekUint64Be(out ulong)
public bool PeekUint64Be(out ulong val)
Parameters
val
ulong
Returns
PeekUint64Le(out ulong)
public bool PeekUint64Le(out ulong val)
Parameters
val
ulong
Returns
PeekUint8(out byte)
public bool PeekUint8(out byte val)
Parameters
val
byte
Returns
SetPos(uint)
public bool SetPos(uint pos)
Parameters
pos
uint
Returns
Skip(uint)
public bool Skip(uint nbytes)
Parameters
nbytes
uint
Returns
SkipStringUtf16()
public bool SkipStringUtf16()
Returns
SkipStringUtf32()
public bool SkipStringUtf32()
Returns
SkipStringUtf8()
public bool SkipStringUtf8()