mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 13:53:30 +02:00
Tiny speed improvement suggested by noon@users.sourceforge.net.
2001-05-23 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * garray.c (g_array_remove_index_fast): Tiny speed improvement suggested by noon@users.sourceforge.net. * glib/tmpl/arrays.sgml, glib/tmpl/arrays_pointers.sgml, glib/tmpl/arrays_byte.sgml: Corrected documentation for the ..._sized_new functions. Discovered by noon@users.sourceforge.net.
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
475193bda8
commit
ef49296716
@@ -1,3 +1,9 @@
|
||||
2001-05-23 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/tmpl/arrays.sgml, glib/tmpl/arrays_pointers.sgml,
|
||||
glib/tmpl/arrays_byte.sgml: Corrected documentation for the
|
||||
..._sized_new functions. Discovered by noon@users.sourceforge.net.
|
||||
|
||||
2001-05-19 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* glib/Makefile.am (IGNORE_HFILES): add glibintl.h
|
||||
|
@@ -79,13 +79,16 @@ when they are allocated.
|
||||
|
||||
<!-- ##### FUNCTION g_array_sized_new ##### -->
|
||||
<para>
|
||||
Creates a new #GArray with the given size.
|
||||
Creates a new #GArray with @reserved_size elements
|
||||
preallocated. This avoids frequent reallocation, if you are going to
|
||||
add many elements to the array. Note however that the size of the
|
||||
array is still 0.
|
||||
</para>
|
||||
|
||||
@zero_terminated: %TRUE if the array should have an extra element at the end with all bits cleared
|
||||
@clear: %TRUE if all bits in the array should be cleared to 0 on allocation
|
||||
@element_size: size of each element in the array
|
||||
@reserved_size: initial array size (number of elements)
|
||||
@reserved_size: number of elements preallocated
|
||||
@Returns: the new #GArray
|
||||
|
||||
|
||||
|
@@ -68,11 +68,13 @@ Creates a new #GByteArray.
|
||||
|
||||
<!-- ##### FUNCTION g_byte_array_sized_new ##### -->
|
||||
<para>
|
||||
Creates a new byte array, with the given size.
|
||||
Creates a new #GByteArray with @reserved_size bytes preallocated. This
|
||||
avoids frequent reallocation, if you are going to add many bytes to
|
||||
the array. Note however that the size of the array is still 0.
|
||||
</para>
|
||||
|
||||
@reserved_size: initial number of bytes in the array
|
||||
@Returns: a new #GByteArray
|
||||
@reserved_size: number of bytes preallocated
|
||||
@Returns: the new #GByteArray
|
||||
|
||||
|
||||
<!-- ##### FUNCTION g_byte_array_append ##### -->
|
||||
|
@@ -82,10 +82,13 @@ Creates a new #GPtrArray.
|
||||
|
||||
<!-- ##### FUNCTION g_ptr_array_sized_new ##### -->
|
||||
<para>
|
||||
Creates a new #GPtrArray with @reserved_size elements.
|
||||
Creates a new #GPtrArray with @reserved_size pointers
|
||||
preallocated. This avoids frequent reallocation, if you are going to
|
||||
add many pointers to the array. Note however that the size of the
|
||||
array is still 0.
|
||||
</para>
|
||||
|
||||
@reserved_size: Initial number of elements.
|
||||
@reserved_size: number of pointers preallocated.
|
||||
@Returns: the new #GPtrArray.
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user