GString: Tweak documentation, add g_string_free_to_bytes()

The docs for GString should really mention GByteArray, and what makes
it different.  Drop the comparison to Java which is dated and actually
inaccurate (because StringBuffer operates on Unicode).

While we're here, add g_string_free_to_bytes(), which further
complements the spread of GBytes-based API.  For example, one can
create a buffer using GString, then send it off via
g_output_stream_write_bytes().

https://bugzilla.gnome.org/show_bug.cgi?id=677064
This commit is contained in:
Colin Walters
2012-05-29 17:58:41 -04:00
parent d72116d8b7
commit 4ac0d78d5d
5 changed files with 68 additions and 6 deletions

View File

@@ -2326,6 +2326,7 @@ g_string_erase
g_string_truncate
g_string_set_size
g_string_free
g_string_free_to_bytes
<SUBSECTION>
g_string_up