peek_string_utf8


Description:

[ CCode ( cname = "gst_byte_reader_peek_string_utf8" ) ]
public bool peek_string_utf8 (out unowned 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 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 skipped, false otherwise.




2022 vala-language.org