gsasl_base64_encode(3)
π gsasl_base64_encode β the manual page, but make it a group chat
okay so bestie, we're in the gsasl manual, page gsasl_base64_encode(3), and I need you to know right now that this function is lowkey retired but we're still gonna learn her because she ate π
β¨ NAME β¨
gsasl_base64_encode β an API function, bestie. that's it, that's the name π
πΈ SYNOPSIS πΈ
#include <gsasl.h>
int gsasl_base64_encode(char const * src, size_t srclength, char *
target, size_t targsize);
look at her. four arguments. no notes. copy it exactly, i'm watching π
π¦ ARGUMENTS π¦
char const * srcβ your input byte array, the raw material, the moment before the glow-up πsize_t srclengthβ how big that input byte array is, fr fr. gotta know what you're working with.char * targetβ the output byte array, aka where the base64 magic gets dropped β¨size_t targsizeβ the size of that output byte array. know your limits, queen.
π DESCRIPTION π
Encode data as base64. it's giving glow-up for bytes π
here's the vibe: it converts characters, three at a time, starting at src, into four base64 characters in the target area, and it keeps going until the entire input buffer is encoded. three in, four out, three in, four out, on repeat until there's nothing left. it's a little assembly line and it is iconic π
Return value: returns the number of data bytes stored at the target, or -1 on error. so like, count your wins when you win, and -1 means something went wrong, no cap π
π DEPRECATED π
bestie. she's deprecated. this is not a drill. use gsasl_base64_to() instead. i'm not being dramatic, the manpage literally says so π
π REPORTING BUGS π
found a bug? not the cute kind? report it, king π«Ά
- Report bugs to
<bug-gsasl@gnu.org>. - General guidelines for reporting bugs:
http://www.gnu.org/gethelp/ - GNU SASL home page:
http://www.gnu.org/software/gsasl/
π COPYRIGHT π
Copyright Β© 2002-2021 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.
(translation: take it, share it, remix it, just keep the receipts π§Ύβ¨)
π SEE ALSO π
The full documentation for gsasl is maintained as a Texinfo manual. If the info and gsasl programs are properly installed at your site, the command
info gsasl
should give you access to the complete manual. As an alternative you may obtain the manual from:
http://www.gnu.org/software/gsasl/manual/
and that's the whole page, bestie π this was gsasl version 1.10.0, page gsasl_base64_encode(3), brought to you by the fine folks maintaining this manual. go forth, encode responsibly, and remember: use gsasl_base64_to() instead πππ
π¦ where this page comes from
- ubuntu jammy: libgsasl-dev 1.10.0-5 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms