Function
GLibByteArraynew_take
since: 2.32
Declaration [src]
GByteArray*
g_byte_array_new_take (
guint8* data,
gsize len
)
Description [src]
Creates a byte array containing the data.
After this call, data belongs to the GByteArray and may no longer be
modified by the caller. The memory of data has to be dynamically
allocated and will eventually be freed with g_free().
Do not use it if len is greater than G_MAXUINT.
GByteArray stores the length of its data in guint, which may be shorter
than gsize.
Available since: 2.32