mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-14 19:55:12 +01:00
gbytearray: Add missing (transfer) annotations
`GByteArray` is a bit odd in that it allows call-chaining. All the instances of that were missing a `(transfer none)` annotation though. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3037
This commit is contained in:
parent
8f08c1a038
commit
c1547f62bc
@ -2761,7 +2761,7 @@ g_byte_array_new_take (guint8 *data,
|
|||||||
* bytes to the array. Note however that the size of the array is still
|
* bytes to the array. Note however that the size of the array is still
|
||||||
* 0.
|
* 0.
|
||||||
*
|
*
|
||||||
* Returns: the new #GByteArray
|
* Returns: (transfer full): the new #GByteArray
|
||||||
*/
|
*/
|
||||||
GByteArray*
|
GByteArray*
|
||||||
g_byte_array_sized_new (guint reserved_size)
|
g_byte_array_sized_new (guint reserved_size)
|
||||||
@ -2825,7 +2825,7 @@ g_byte_array_free_to_bytes (GByteArray *array)
|
|||||||
* Atomically increments the reference count of @array by one.
|
* Atomically increments the reference count of @array by one.
|
||||||
* This function is thread-safe and may be called from any thread.
|
* This function is thread-safe and may be called from any thread.
|
||||||
*
|
*
|
||||||
* Returns: The passed in #GByteArray
|
* Returns: (transfer full): The passed in #GByteArray
|
||||||
*
|
*
|
||||||
* Since: 2.22
|
* Since: 2.22
|
||||||
*/
|
*/
|
||||||
@ -2861,7 +2861,7 @@ g_byte_array_unref (GByteArray *array)
|
|||||||
* Adds the given bytes to the end of the #GByteArray.
|
* Adds the given bytes to the end of the #GByteArray.
|
||||||
* The array will grow in size automatically if necessary.
|
* The array will grow in size automatically if necessary.
|
||||||
*
|
*
|
||||||
* Returns: the #GByteArray
|
* Returns: (transfer none): the #GByteArray
|
||||||
*/
|
*/
|
||||||
GByteArray*
|
GByteArray*
|
||||||
g_byte_array_append (GByteArray *array,
|
g_byte_array_append (GByteArray *array,
|
||||||
@ -2882,7 +2882,7 @@ g_byte_array_append (GByteArray *array,
|
|||||||
* Adds the given data to the start of the #GByteArray.
|
* Adds the given data to the start of the #GByteArray.
|
||||||
* The array will grow in size automatically if necessary.
|
* The array will grow in size automatically if necessary.
|
||||||
*
|
*
|
||||||
* Returns: the #GByteArray
|
* Returns: (transfer none): the #GByteArray
|
||||||
*/
|
*/
|
||||||
GByteArray*
|
GByteArray*
|
||||||
g_byte_array_prepend (GByteArray *array,
|
g_byte_array_prepend (GByteArray *array,
|
||||||
@ -2901,7 +2901,7 @@ g_byte_array_prepend (GByteArray *array,
|
|||||||
*
|
*
|
||||||
* Sets the size of the #GByteArray, expanding it if necessary.
|
* Sets the size of the #GByteArray, expanding it if necessary.
|
||||||
*
|
*
|
||||||
* Returns: the #GByteArray
|
* Returns: (transfer none): the #GByteArray
|
||||||
*/
|
*/
|
||||||
GByteArray*
|
GByteArray*
|
||||||
g_byte_array_set_size (GByteArray *array,
|
g_byte_array_set_size (GByteArray *array,
|
||||||
@ -2920,7 +2920,7 @@ g_byte_array_set_size (GByteArray *array,
|
|||||||
* Removes the byte at the given index from a #GByteArray.
|
* Removes the byte at the given index from a #GByteArray.
|
||||||
* The following bytes are moved down one place.
|
* The following bytes are moved down one place.
|
||||||
*
|
*
|
||||||
* Returns: the #GByteArray
|
* Returns: (transfer none): the #GByteArray
|
||||||
**/
|
**/
|
||||||
GByteArray*
|
GByteArray*
|
||||||
g_byte_array_remove_index (GByteArray *array,
|
g_byte_array_remove_index (GByteArray *array,
|
||||||
@ -2941,7 +2941,7 @@ g_byte_array_remove_index (GByteArray *array,
|
|||||||
* does not preserve the order of the #GByteArray. But it is faster
|
* does not preserve the order of the #GByteArray. But it is faster
|
||||||
* than g_byte_array_remove_index().
|
* than g_byte_array_remove_index().
|
||||||
*
|
*
|
||||||
* Returns: the #GByteArray
|
* Returns: (transfer none): the #GByteArray
|
||||||
*/
|
*/
|
||||||
GByteArray*
|
GByteArray*
|
||||||
g_byte_array_remove_index_fast (GByteArray *array,
|
g_byte_array_remove_index_fast (GByteArray *array,
|
||||||
@ -2961,7 +2961,7 @@ g_byte_array_remove_index_fast (GByteArray *array,
|
|||||||
* Removes the given number of bytes starting at the given index from a
|
* Removes the given number of bytes starting at the given index from a
|
||||||
* #GByteArray. The following elements are moved to close the gap.
|
* #GByteArray. The following elements are moved to close the gap.
|
||||||
*
|
*
|
||||||
* Returns: the #GByteArray
|
* Returns: (transfer none): the #GByteArray
|
||||||
*
|
*
|
||||||
* Since: 2.4
|
* Since: 2.4
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user