mirror of
https://github.com/tursodatabase/libsql.git
synced 2025-03-08 23:41:50 +00:00
A common complain with libSQL is how to run extensions. The main mechanism, with a .so, has a lot of issues around how those .so are distributed. The most common extensions are the ones in the sqlean package. We can improve this experience by bundling them in our sqlite build. Not all SQLean extensions are kosher: some of them, like fileio, use the vfs. Others, are deemed too complex. The extensions included here are a subset that we deem important enough, and low risk enough, to just be a part of the main bundle.
16 lines
373 B
C
16 lines
373 B
C
// Copyright (c) 2023 Anton Zhiyanov, MIT License
|
|
// https://github.com/nalgeon/sqlean
|
|
|
|
// Base64 encoding/decoding (RFC 4648)
|
|
|
|
#ifndef BASE64_H
|
|
#define BASE64_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
uint8_t* base64_encode(const uint8_t* src, size_t len, size_t* out_len);
|
|
uint8_t* base64_decode(const uint8_t* src, size_t len, size_t* out_len);
|
|
|
|
#endif /* BASE64_H */
|