MemoryInputStream.from_data


Description:

public MemoryInputStream.from_data (owned uint8[] data, DestroyNotify? destroy)

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.