util_bdata_get_string


Description:


[ Version ( since = "3.24" ) ]
public string util_bdata_get_string (string bdata_ptr, string default_value)

Reads a string data from the bdata_ptr and moves the bdata_ptr after that string.

If the string cannot be read, then the default_value is returned instead and the bdata_ptr is left unchanged. The string might be previously stored with the util_bdata_put_string.

Parameters:

bdata_ptr

a backend specific data (bdata) pointer

default_value

a value to return, when no data can be read

Returns:

Newly allocated string, which was read, or dupped the default_value, if the bdata_ptr doesn't point to a string. Free returned pointer with g_free when done with it.


Namespace: Camel
Package: camel-1.2