Constructor

GioMemoryInputStreamnew_from_bytes

Declaration

GInputStream*
g_memory_input_stream_new_from_bytes (
  GBytes* bytes
)

Description

Creates a new GMemoryInputStream with data from the given bytes.

Available since:2.34

Parameters

bytes GBytes
 

A GBytes.

 The data is owned by the caller of the function.

Return value

Returns: GInputStream
 

New GInputStream read from bytes.

 The caller of the function takes ownership of the data, and is responsible for freeing it.