ByteReader.getStringUtf8

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.

No input checking for valid UTF-8 is done.

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

class ByteReader
bool
getStringUtf8
(
out string str
)

Parameters

str string

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

Return Value

Type: bool

TRUE if a string could be found, FALSE otherwise.