Sets our main struct and passes it to the parent class.
Create a new #GstByteReader instance, which will read from @data.
Free-function: g_free
Free-function: g_free
Free-function: g_free
Free-function: g_free
Frees a #GstByteReader instance, which was previously allocated by gst_byte_reader_new().
Get the main Gtk struct
Returns a constant pointer to the current data position if at least @size bytes are left and updates the current position.
Read a 32 bit big endian floating point value into @val and update the current position.
Read a 32 bit little endian floating point value into @val and update the current position.
Read a 64 bit big endian floating point value into @val and update the current position.
Read a 64 bit little endian floating point value into @val and update the current position.
Read a signed 16 bit big endian integer into @val and update the current position.
Read a signed 16 bit little endian integer into @val and update the current position.
Read a signed 24 bit big endian integer into @val and update the current position.
Read a signed 24 bit little endian integer into @val and update the current position.
Read a signed 32 bit big endian integer into @val and update the current position.
Read a signed 32 bit little endian integer into @val and update the current position.
Read a signed 64 bit big endian integer into @val and update the current position.
Read a signed 64 bit little endian integer into @val and update the current position.
Read a signed 8 bit integer into @val and update the current position.
Returns the current position of a #GstByteReader instance in bytes.
Returns the remaining number of bytes of a #GstByteReader instance.
Returns the total number of bytes of a #GstByteReader instance.
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 string. This will work for any NUL-terminated string with a character width of 8 bits, so ASCII, UTF-8, ISO-8859-N etc.
the main Gtk struct as a void*
Initializes a #GstByteReader sub-reader instance to contain @size bytes of data from the current position of @reader. This is useful to read chunked formats and make sure that one doesn't read beyond the size of the sub-chunk.
Read an unsigned 16 bit big endian integer into @val and update the current position.
Read an unsigned 16 bit little endian integer into @val and update the current position.
Read an unsigned 24 bit big endian integer into @val and update the current position.
Read an unsigned 24 bit little endian integer into @val and update the current position.
Read an unsigned 32 bit big endian integer into @val and update the current position.
Read an unsigned 32 bit little endian integer into @val and update the current position.
Read an unsigned 64 bit big endian integer into @val and update the current position.
Read an unsigned 64 bit little endian integer into @val and update the current position.
Read an unsigned 8 bit integer into @val and update the current position.
Initializes a #GstByteReader instance to read from @data. This function can be called on already initialized instances.
Scan for pattern @pattern with applied mask @mask in the byte reader data, starting from offset @offset relative to the current position.
Scan for pattern @pattern with applied mask @mask in the byte reader data, starting from offset @offset relative to the current position.
Returns a constant pointer to the current data position if at least @size bytes are left and keeps the current position.
Read a 32 bit big endian floating point value into @val but keep the current position.
Read a 32 bit little endian floating point value into @val but keep the current position.
Read a 64 bit big endian floating point value into @val but keep the current position.
Read a 64 bit little endian floating point value into @val but keep the current position.
Read a signed 16 bit big endian integer into @val but keep the current position.
Read a signed 16 bit little endian integer into @val but keep the current position.
Read a signed 24 bit big endian integer into @val but keep the current position.
Read a signed 24 bit little endian integer into @val but keep the current position.
Read a signed 32 bit big endian integer into @val but keep the current position.
Read a signed 32 bit little endian integer into @val but keep the current position.
Read a signed 64 bit big endian integer into @val but keep the current position.
Read a signed 64 bit little endian integer into @val but keep the current position.
Read a signed 8 bit integer into @val but keep the current position.
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 work for any NUL-terminated string with a character width of 8 bits, so ASCII, UTF-8, ISO-8859-N etc.
Initializes a #GstByteReader sub-reader instance to contain @size bytes of data from the current position of @reader. This is useful to read chunked formats and make sure that one doesn't read beyond the size of the sub-chunk.
Read an unsigned 16 bit big endian integer into @val but keep the current position.
Read an unsigned 16 bit little endian integer into @val but keep the current position.
Read an unsigned 24 bit big endian integer into @val but keep the current position.
Read an unsigned 24 bit little endian integer into @val but keep the current position.
Read an unsigned 32 bit big endian integer into @val but keep the current position.
Read an unsigned 32 bit little endian integer into @val but keep the current position.
Read an unsigned 64 bit big endian integer into @val but keep the current position.
Read an unsigned 64 bit little endian integer into @val but keep the current position.
Read an unsigned 8 bit integer into @val but keep the current position.
Sets the new position of a #GstByteReader instance to @pos in bytes.
Skips @nbytes bytes of the #GstByteReader instance.
Skips a NUL-terminated UTF-16 string in the #GstByteReader instance, advancing the current position to the byte after the string.
Skips a NUL-terminated UTF-32 string in the #GstByteReader instance, advancing the current position to the byte after the string.
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 bits, so ASCII, UTF-8, ISO-8859-N etc. No input checking for valid UTF-8 is done.
the main Gtk struct
#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.