mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 13:06:14 +01:00
GByteArray: Add missing transfer annotations
Make g_byte_array_new() and g_byte_array_new_take() introspectable by adding missing transfer annotations to return value. Covered by tests in PyGObject.
This commit is contained in:
parent
e06268d72e
commit
a07a5f82aa
@ -1512,7 +1512,7 @@ g_ptr_array_foreach (GPtrArray *array,
|
||||
*
|
||||
* Creates a new #GByteArray with a reference count of 1.
|
||||
*
|
||||
* Returns: the new #GByteArray.
|
||||
* Returns: (transfer full): the new #GByteArray.
|
||||
**/
|
||||
GByteArray* g_byte_array_new (void)
|
||||
{
|
||||
@ -1521,7 +1521,7 @@ GByteArray* g_byte_array_new (void)
|
||||
|
||||
/**
|
||||
* g_byte_array_new_take:
|
||||
* @data: (array length=len): byte data for the array
|
||||
* @data: (transfer full) (array length=len): byte data for the array
|
||||
* @len: length of @data
|
||||
*
|
||||
* Create byte array containing the data. The data will be owned by the array
|
||||
|
Loading…
Reference in New Issue
Block a user