Bug 564728 Add function to decode base64 encoded data in place

2009-01-13  Matthias Clasen  <mclasen@redhat.com>

        Bug 564728 Add function to decode base64 encoded data in place

        * glib/glib.symbols:
        * glib/gbase64.[hc] (g_base64_decode_inplace): New convenience
        API to decode in place, overwriting the input string. Patch by
        Sebastian Dröge.


svn path=/trunk/; revision=7807
This commit is contained in:
Matthias Clasen
2009-01-13 19:59:32 +00:00
committed by Matthias Clasen
parent 0f35c33ecf
commit c8dd07333a
7 changed files with 54 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2009-01-13 Matthias Clasen <mclasen@redhat.com>
* glib/glib-sections.txt:
* glib/tmpl/base64.sgml: Mention g_base64_decode_inplace
2009-01-05 Matthias Clasen <mclasen@redhat.com>
* === Released 2.19.4 ===

View File

@@ -2527,6 +2527,7 @@ g_base64_encode_close
g_base64_encode
g_base64_decode_step
g_base64_decode
g_base64_decode_inplace
</SECTION>
<SECTION>

View File

@@ -18,7 +18,8 @@ for email.
GLib supports incremental encoding using g_base64_encode_step() and
g_base64_encode_close(). Incremental decoding can be done with
g_base64_decode_step(). To encode or decode data in one go, use
g_base64_encode() or g_base64_decode().
g_base64_encode() or g_base64_decode(). To avoid memory allocation when
decoding, you can use g_base64_decode_inplace().
</para>
<para>