Function
GLibBytesnew_static
since: 2.32
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
This function is not directly available to language bindings.
Parameters
data-
Type: An array of
guint8the data to be used for the bytes.The length of the array is specified in the sizeargument. size-
Type:
gsizeThe size of
data.
Return value
Type: GBytes
A new GBytes.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |