mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-06 07:58:44 +02:00
GBytes: A new type for an immutable set of bytes.
* Represents an immutable reference counted block of memory. * This is basically the internal glib GBuffer structure exposed, renamed, and with some additional capabilities. * The GBytes name comes from python3's immutable 'bytes' type * GBytes can be safely used as keys in hash tables, and have functions for doing so: g_bytes_hash, g_bytes_equal * GByteArray is a mutable form of GBytes, and vice versa. There are functions for converting from one to the other efficiently: g_bytes_unref_to_array() and g_byte_array_free_to_bytes() * Adds g_byte_array_new_take() to support above functions https://bugzilla.gnome.org/show_bug.cgi?id=663291
This commit is contained in:
@@ -2382,8 +2382,10 @@ g_ptr_array_foreach
|
||||
<SECTION>
|
||||
<TITLE>Byte Arrays</TITLE>
|
||||
<FILE>arrays_byte</FILE>
|
||||
<SUBSECTION>
|
||||
GByteArray
|
||||
g_byte_array_new
|
||||
g_byte_array_new_take
|
||||
g_byte_array_sized_new
|
||||
g_byte_array_ref
|
||||
g_byte_array_unref
|
||||
@@ -2396,7 +2398,24 @@ g_byte_array_sort
|
||||
g_byte_array_sort_with_data
|
||||
g_byte_array_set_size
|
||||
g_byte_array_free
|
||||
g_byte_array_free_to_bytes
|
||||
|
||||
<SUBSECTION>
|
||||
GBytes
|
||||
g_bytes_new
|
||||
g_bytes_new_take
|
||||
g_bytes_new_static
|
||||
g_bytes_new_with_free_func
|
||||
g_bytes_new_from_bytes
|
||||
g_bytes_get_data
|
||||
g_bytes_get_size
|
||||
g_bytes_hash
|
||||
g_bytes_equal
|
||||
g_bytes_compare
|
||||
g_bytes_ref
|
||||
g_bytes_unref
|
||||
g_bytes_unref_to_data
|
||||
g_bytes_unref_to_array
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
|
Reference in New Issue
Block a user