get_data_writable


Description:

[ CCode ( array_length_pos = 0.2 , array_length_type = "guint" ) ]
[ Version ( since = "0.9.2" ) ]
public unowned char[] get_data_writable ()

Tries to make blob data writable (possibly copying it) and return pointer to data.

Fails if blob has been made immutable, or if memory allocation fails.

Parameters:

blob

a blob.

length

output length of the writable data.

Returns:

Writable blob data, or `NULL` if failed.