diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2026-05-16 18:26:37 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2026-05-22 09:58:54 +0000 |
| commit | 4bc8a39d6c6390d4ebfee6a16e22750e52d3da6a (patch) | |
| tree | b8149787acb7245d2fa8235ee89cfe4bc8442d8a /foot-server@.socket | |
| parent | selection: do not copy empty text (diff) | |
base64: add base64_encode_oneshot()
Convenience function for base64_encode() + base64_encode_final().
Internally, we also add base64_encode_to_buffer()
This is an internal function that encodes a multiple-of-three long
input into a user allocated buffer.
base64_encode() and base64_encode_oneshot() uses the new function to
do the bulk of the encoding. This allows base64_encode_oneshot() to do
a single allocation.
This patch also adds unit tests for both base64_encode() and
base64_encode_oneshot() (but _not_ for base64_encode_final()).
Finally, the type of the 'data' parameter is changed to 'void*'.
Diffstat (limited to 'foot-server@.socket')
0 files changed, 0 insertions, 0 deletions
