PostgreSQL Source Code git master
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-2025, PostgreSQL Global Development Group
7 *
8 * src/include/common/base64.h
9 */
10#ifndef BASE64_H
11#define BASE64_H
12
13/* base 64 */
14extern pg_nodiscard int pg_b64_encode(const char *src, int len, char *dst, int dstlen);
15extern pg_nodiscard int pg_b64_decode(const char *src, int len, char *dst, int dstlen);
16extern int pg_b64_enc_len(int srclen);
17extern int pg_b64_dec_len(int srclen);
18
19#endif /* BASE64_H */
pg_nodiscard int pg_b64_encode(const char *src, int len, char *dst, int dstlen)
Definition: base64.c:49
int pg_b64_enc_len(int srclen)
Definition: base64.c:224
pg_nodiscard int pg_b64_decode(const char *src, int len, char *dst, int dstlen)
Definition: base64.c:116
int pg_b64_dec_len(int srclen)
Definition: base64.c:239
#define pg_nodiscard
Definition: c.h:145
const void size_t len