Abandonment of the project

This commit is contained in:
Nikita Tyukalov, ASUS, Linux
2026-07-27 16:27:50 +03:00
parent afd9a00a03
commit 943d784fd0
13 changed files with 403 additions and 3 deletions

27
base64.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef __BASE64_H
#define __BASE64_H
#include <stdint.h>
/*
* Public API
*/
// Encode data as URL-safe Base64.
// Parameters:
// - data - data to encode
// - size - size of data to encode
// Returns:
// - pointer to resulting \0-terminated string (you must free() it)
// - NULL on out-of-memory
char *base64_encode(const void *data, uint32_t size);
// Decode data from URL-safe Base64.
// Parameters:
// - data - data to decode (must have \0)
// - out_size - size of decoded data
// Returns:
// - pointer to decoded data (you must free() it)
// - NULL on out-of-memory
void *base64_decode(const char *data, uint32_t *out_size);
#endif