Add length accessor for GRefString

Desktop / GNOME / GLib - Emmanuele Bassi [gnome.org] - 9 July 2018 09:11 EDT

Since we store the size of the allocation in the underlying ArcBox, we can get a constant time getter for the length of the string.

32ecb86f5 Add length accessor for GRefString
docs/reference/glib/glib-sections.txt | 1 +
glib/grefstring.c | 18 ++++++++++++++++++
glib/grefstring.h | 3 +++
glib/tests/refstring.c | 1 +
4 files changed, 23 insertions(+)

Upstream: git.gnome.org


  • Share