Function
GLibBytesnew
since: 2.32
Declaration [src]
GBytes*
g_bytes_new (
gconstpointer data,
gsize size
)
Description [src]
Creates a new GBytes from data.
data is copied. If size is 0, data may be NULL.
Available since: 2.32
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. |