Creates a new
After this call,
data belongs to the bytes and may no longer be
modified by the caller.
g_free() will be called on
data when the
bytes is no longer in use. Because of this
data must have been created by
a call to g_malloc(),
g_realloc() or by one of the many
functions that wrap these calls (such as g_new(), g_strdup(), etc).
GBytes with memory from other allocators, see g_bytes_new_with_free_func().
data may be
size is 0.
Type: An array of
the data to be used for the bytes.
The length of the array is specified in the
The size of
|The caller of the function takes ownership of the data, and is responsible for freeing it.|