steal_data


Description:

[ CCode ( array_length = false ) ]
[ Version ( since = "2.26" ) ]
public uint8[] steal_data ()

Gets any loaded data from the this.

Ownership of the data is transferred to the caller; when no longer needed it must be freed using the free function set in this's destroy_function property.

this must be closed before calling this function.

Parameters:

this

a MemoryOutputStream

Returns:

the stream's data, or null if it has previously been stolen




2022 vala-language.org