GBytes: A new type for an immutable set of bytes.
authorStef Walter <stefw@collabora.co.uk>
Fri, 11 Nov 2011 16:08:26 +0000 (17:08 +0100)
committerStef Walter <stefw@collabora.co.uk>
Thu, 24 Nov 2011 07:58:38 +0000 (08:58 +0100)
commitfcc69fd318f55ca0edc52864b4c0488b304b8382
tree9c0a130d5144840b417515c67ebf9a9fe466578a
parent069ec3719c65be5663c10eb98569e45e13501d97
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
25 files changed:
docs/reference/glib/Makefile.am
docs/reference/glib/glib-sections.txt
docs/reference/gobject/gobject-sections.txt
glib/Makefile.am
glib/garray.c
glib/garray.h
glib/gbuffer.c [deleted file]
glib/gbufferprivate.h [deleted file]
glib/gbytes.c [new file with mode: 0644]
glib/gbytes.h [new file with mode: 0644]
glib/glib.h
glib/glib.symbols
glib/gmappedfile.c
glib/gmappedfile.h
glib/gtimezone.c
glib/gvariant-core.c
glib/gvariant-core.h
glib/gvariant.c
glib/tests/.gitignore
glib/tests/Makefile.am
glib/tests/array-test.c
glib/tests/bytes.c [new file with mode: 0644]
gobject/gboxed.c
gobject/glib-types.h
gobject/gobject.symbols