MemoryInputStream.from_data


Description:

[ CCode ( has_construct_function = false , type = "GInputStream*" ) ]
public MemoryInputStream.from_data (owned uint8[] data, DestroyNotify? destroy = g_free)

Creates a new MemoryInputStream with data in memory of a given size.

Parameters:

data

input data

destroy

function that is called to free data, or null

len

length of the data, may be -1 if data is a nul-terminated string

Returns:

new InputStream read from data of data.length bytes.




2022 vala-language.org