decode


Description:

[ CCode ( array_length_type = "gsize" ) ]
public uchar[] decode (string text)

Example: Base64, decode:

public static int main (string[] args) {
string decoded = (string) Base64.decode ("aGVsbG8sIHdvcmxkIQ==");
print ("Expected: hello, world!\n");
print ("Got: %s\n", decoded);
return 0;
}

valac --pkg glib-2.0 GLib.Base64.decode.vala


Namespace: GLib.Base64
Package: glib-2.0