dup_string_utf8


Description:

[ CCode ( cname = "gst_byte_reader_dup_string_utf8" ) ]
public bool dup_string_utf8 (out string[] str)

Free-function: g_free

FIXME:Reads (copies) a NUL-terminated string in the ByteReader 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.

This function will fail if no NUL-terminator was found in in the data.

Parameters:

this

a ByteReader instance

str

address of a char pointer variable in which to store the result

Returns:

true if a string could be read into str, false otherwise. The string put into str must be freed with g_free when no longer needed.