GNOME Bugzilla – Bug 564728
[Base64] Add function to decode base64 encoded data in place
Last modified: 2009-01-13 19:59:59 UTC
Hi it'd be nice if glib provided a function for decoding base64 encoded data in place, i.e. without allocating new memory and with overwriting the input. This always works because base64 encoded data is larger than the same data in decoded form.
Created attachment 125838 [details] [review] base64-inplace.diff
Would be nice to get this into 2.20... or is it too late already?
I admit that I fail to see why this is adding new api, and not just an example for in-place decoding in the g_base64_decode_step() docs.
Well, it's a convenience function that cares for the string length and the (for this use case) irrelevant save and state variables.
*** Bug 567436 has been marked as a duplicate of this bug. ***
Ok, convinced. 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.