Method
VarlinkMessageReaderpeek_string
Declaration [src]
const char*
varlink_message_reader_peek_string (
VarlinkMessageReader* reader,
gsize* length,
GError** error
)
Description [src]
Borrows the current node as an unescaped UTF-8 string.
The returned data is borrowed from the underlying VarlinkMessage and is
valid until reader is cleared or freed. It is not NUL-terminated; callers
must use length. Escaped JSON strings cannot be borrowed because they need
unescaping; use varlink_message_reader_dup_string() when a NUL-terminated
string is required.
Parameters
length-
Type:
gsize*Return location for the string length, in bytes.
The argument will be set by the function. The argument can be NULL. error-
Type:
GError **The return location for a recoverable error.
The argument can be NULL.If the return location is not NULL, then you must initialize it to aNULLGError*.The argument will be left initialized to NULLby the method if there are no errors.In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.