PostgreSQL Source Code  git master
hex.h
Go to the documentation of this file.
1 /*------------------------------------------------------------------------
2  *
3  * hex.h
4  * Encoding and decoding routines for hex strings.
5  *
6  * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * IDENTIFICATION
10  * src/include/common/hex.h
11  *
12  *------------------------------------------------------------------------
13  */
14 
15 #ifndef COMMON_HEX_H
16 #define COMMON_HEX_H
17 
18 extern uint64 pg_hex_decode(const char *src, size_t srclen,
19  char *dst, size_t dstlen);
20 extern uint64 pg_hex_encode(const char *src, size_t srclen,
21  char *dst, size_t dstlen);
22 extern uint64 pg_hex_enc_len(size_t srclen);
23 extern uint64 pg_hex_dec_len(size_t srclen);
24 
25 #endif /* COMMON_HEX_H */
uint64 pg_hex_dec_len(size_t srclen)
Definition: hex.c:189
uint64 pg_hex_encode(const char *src, size_t srclen, char *dst, size_t dstlen)
Definition: hex.c:74
uint64 pg_hex_decode(const char *src, size_t srclen, char *dst, size_t dstlen)
Definition: hex.c:112
uint64 pg_hex_enc_len(size_t srclen)
Definition: hex.c:175