PostgreSQL Source Code  git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
base64.h
Go to the documentation of this file.
1 /*
2  * base64.h
3  * Encoding and decoding routines for base64 without whitespace
4  * support.
5  *
6  * Portions Copyright (c) 2001-2024, PostgreSQL Global Development Group
7  *
8  * src/include/common/base64.h
9  */
10 #ifndef BASE64_H
11 #define BASE64_H
12 
13 /* base 64 */
14 extern int pg_b64_encode(const char *src, int len, char *dst, int dstlen);
15 extern int pg_b64_decode(const char *src, int len, char *dst, int dstlen);
16 extern int pg_b64_enc_len(int srclen);
17 extern int pg_b64_dec_len(int srclen);
18 
19 #endif /* BASE64_H */
int pg_b64_decode(const char *src, int len, char *dst, int dstlen)
Definition: base64.c:116
int pg_b64_enc_len(int srclen)
Definition: base64.c:224
int pg_b64_encode(const char *src, int len, char *dst, int dstlen)
Definition: base64.c:49
int pg_b64_dec_len(int srclen)
Definition: base64.c:239
const void size_t len