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

See:




2022 vala-language.org