garray: Add g_array_new_take() and g_array_new_take_zero_terminated()

Make it easy to handle C arrays using GArray API stealing data from other
sources.
This commit is contained in:
Marco Trevisan (Treviño)
2022-12-14 00:58:13 +01:00
committed by Philip Withnall
parent 9ea56848c2
commit b15040215a
4 changed files with 319 additions and 0 deletions

View File

@@ -2680,6 +2680,8 @@ g_string_chunk_free
<FILE>arrays</FILE>
GArray
g_array_new
g_array_new_take
g_array_new_take_zero_terminated
g_array_steal
g_array_sized_new
g_array_copy