2
0

base64.h 515 B

12345678910111213141516171819
  1. /*
  2. * base64.h
  3. * Encoding and decoding routines for base64 without whitespace
  4. * support.
  5. *
  6. * Portions Copyright (c) 2001-2022, PostgreSQL Global Development Group
  7. *
  8. * src/include/common/base64.h
  9. */
  10. #ifndef BASE64_H
  11. #define BASE64_H
  12. /* base 64 */
  13. extern int pg_b64_encode(const char *src, int len, char *dst, int dstlen);
  14. extern int pg_b64_decode(const char *src, int len, char *dst, int dstlen);
  15. extern int pg_b64_enc_len(int srclen);
  16. extern int pg_b64_dec_len(int srclen);
  17. #endif /* BASE64_H */