Constructor
GioMemoryInputStreamnew_from_data
Declaration [src]
GInputStream*
g_memory_input_stream_new_from_data (
void* data,
gssize len,
GDestroyNotify destroy
)
Parameters
data-
Type: An array of
guint8Input data.
The length of the array is specified in the lenargument.The called function takes ownership of the data, and is responsible for freeing it. len-
Type:
gssizeLength of the data, may be -1 if
datais a nul-terminated string. destroy-
Type:
GDestroyNotifyFunction that is called to free
data, orNULL.The argument can be NULL.
Return value
Type: GInputStream
New GInputStream read from data of len bytes.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |