Function
GLibBytesnew_static
Description
Creates a new GBytes
from static data.
data
must be static (ie: never modified or freed). It may be NULL
if size
is 0.
Available since: | 2.32 |
Parameters
data |
An array of guint8 |
|
|
The length of the array is specified in the size argument. | |
size |
gsize |
The size of |
Return value
Returns: | GBytes |
A new |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |