gstbase.byte_reader
Module for [ByteReader] class
class ByteReader
Types 1
classByteReader
#GstByteReader provides a byte reader that can read different integer and floating point types from a memory buffer. It provides functions for reading signed/unsigned, little/big endian integers of 8, 16, 24, 32 and 64 bits and functions for reading little/big endian floating points numbers of 32 and 64 bits. It also provides functions to read NUL-terminated strings in various character encodings.
Fields
GstByteReader _cInstanceMethods
void * _cPtr()bool dupStringUtf16(out ushort[] str)Free-function: g_freebool dupStringUtf32(out uint[] str)Free-function: g_freebool dupStringUtf8(out string str)Free-function: g_freebool getFloat32Be(out float val)Read a 32 bit big endian floating point value into val and update the current position.bool getFloat32Le(out float val)Read a 32 bit little endian floating point value into val and update the current position.bool getFloat64Be(out double val)Read a 64 bit big endian floating point value into val and update the current position.bool getFloat64Le(out double val)Read a 64 bit little endian floating point value into val and update the current position.bool getInt16Be(out short val)Read a signed 16 bit big endian integer into val and update the current position.bool getInt16Le(out short val)Read a signed 16 bit little endian integer into val and update the current position.bool getInt24Be(out int val)Read a signed 24 bit big endian integer into val and update the current position.bool getInt24Le(out int val)Read a signed 24 bit little endian integer into val and update the current position.bool getInt32Be(out int val)Read a signed 32 bit big endian integer into val and update the current position.bool getInt32Le(out int val)Read a signed 32 bit little endian integer into val and update the current position.bool getInt64Be(out long val)Read a signed 64 bit big endian integer into val and update the current position.bool getInt64Le(out long val)Read a signed 64 bit little endian integer into val and update the current position.bool getInt8(out byte val)Read a signed 8 bit integer into val and update the current position.uint getPos()Returns the current position of a #GstByteReader instance in bytes. Returns: The current position of reader in bytes.uint getRemaining()Returns the remaining number of bytes of a #GstByteReader instance. Returns: The remaining number of bytes of reader instance.uint getSize()Returns the total number of bytes of a #GstByteReader instance. Returns: The total number of bytes of reader instance.bool getStringUtf8(out string str)Returns a constant pointer to the current data position if there is a NUL-terminated string in the data (this could be just a NUL terminator), advancing the current position to the byte after the s...bool getUint16Be(out ushort val)Read an unsigned 16 bit big endian integer into val and update the current position.bool getUint16Le(out ushort val)Read an unsigned 16 bit little endian integer into val and update the current position.bool getUint24Be(out uint val)Read an unsigned 24 bit big endian integer into val and update the current position.bool getUint24Le(out uint val)Read an unsigned 24 bit little endian integer into val and update the current position.bool getUint32Be(out uint val)Read an unsigned 32 bit big endian integer into val and update the current position.bool getUint32Le(out uint val)Read an unsigned 32 bit little endian integer into val and update the current position.bool getUint64Be(out ulong val)Read an unsigned 64 bit big endian integer into val and update the current position.bool getUint64Le(out ulong val)Read an unsigned 64 bit little endian integer into val and update the current position.bool getUint8(out ubyte val)Read an unsigned 8 bit integer into val and update the current position.void init_(ubyte[] data)Initializes a #GstByteReader instance to read from data. This function can be called on already initialized instances.uint maskedScanUint32(uint mask, uint pattern, uint offset, uint size)Scan for pattern pattern with applied mask mask in the byte reader data, starting from offset offset relative to the current position.uint maskedScanUint32Peek(uint mask, uint pattern, uint offset, uint size, out uint value)Scan for pattern pattern with applied mask mask in the byte reader data, starting from offset offset relative to the current position.bool peekFloat32Be(out float val)Read a 32 bit big endian floating point value into val but keep the current position.bool peekFloat32Le(out float val)Read a 32 bit little endian floating point value into val but keep the current position.bool peekFloat64Be(out double val)Read a 64 bit big endian floating point value into val but keep the current position.bool peekFloat64Le(out double val)Read a 64 bit little endian floating point value into val but keep the current position.bool peekInt16Be(out short val)Read a signed 16 bit big endian integer into val but keep the current position.bool peekInt16Le(out short val)Read a signed 16 bit little endian integer into val but keep the current position.bool peekInt24Be(out int val)Read a signed 24 bit big endian integer into val but keep the current position.bool peekInt24Le(out int val)Read a signed 24 bit little endian integer into val but keep the current position.bool peekInt32Be(out int val)Read a signed 32 bit big endian integer into val but keep the current position.bool peekInt32Le(out int val)Read a signed 32 bit little endian integer into val but keep the current position.bool peekInt64Be(out long val)Read a signed 64 bit big endian integer into val but keep the current position.bool peekInt64Le(out long val)Read a signed 64 bit little endian integer into val but keep the current position.bool peekInt8(out byte val)Read a signed 8 bit integer into val but keep the current position.bool peekStringUtf8(out string str)Returns a constant pointer to the current data position if there is a NUL-terminated string in the data (this could be just a NUL terminator). The current position will be maintained. This will wor...bool peekUint16Be(out ushort val)Read an unsigned 16 bit big endian integer into val but keep the current position.bool peekUint16Le(out ushort val)Read an unsigned 16 bit little endian integer into val but keep the current position.bool peekUint24Be(out uint val)Read an unsigned 24 bit big endian integer into val but keep the current position.bool peekUint24Le(out uint val)Read an unsigned 24 bit little endian integer into val but keep the current position.bool peekUint32Be(out uint val)Read an unsigned 32 bit big endian integer into val but keep the current position.bool peekUint32Le(out uint val)Read an unsigned 32 bit little endian integer into val but keep the current position.bool peekUint64Be(out ulong val)Read an unsigned 64 bit big endian integer into val but keep the current position.bool peekUint64Le(out ulong val)Read an unsigned 64 bit little endian integer into val but keep the current position.bool peekUint8(out ubyte val)Read an unsigned 8 bit integer into val but keep the current position.bool setPos(uint pos)Sets the new position of a #GstByteReader instance to pos in bytes.bool skip(uint nbytes)Skips nbytes bytes of the #GstByteReader instance.bool skipStringUtf16()Skips a NUL-terminated UTF-16 string in the #GstByteReader instance, advancing the current position to the byte after the string.bool skipStringUtf32()Skips a NUL-terminated UTF-32 string in the #GstByteReader instance, advancing the current position to the byte after the string.bool skipStringUtf8()Skips a NUL-terminated string in the #GstByteReader instance, advancing the current position to the byte after the string. This will work for any NUL-terminated string with a character width of 8 b...