Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
blob: 150771a14d74940142d9830de658d2376bb4053a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*------------------------------------------------------------------------
 *
 *	hex.h
 *	  Encoding and decoding routines for hex strings.
 *
 *	Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
 *	Portions Copyright (c) 1994, Regents of the University of California
 *
 * IDENTIFICATION
 *		  src/include/common/hex.h
 *
 *------------------------------------------------------------------------
 */

#ifndef COMMON_HEX_H
#define COMMON_HEX_H

extern uint64 pg_hex_decode(const char *src, size_t srclen,
							char *dst, size_t dstlen);
extern uint64 pg_hex_encode(const char *src, size_t srclen,
							char *dst, size_t dstlen);
extern uint64 pg_hex_enc_len(size_t srclen);
extern uint64 pg_hex_dec_len(size_t srclen);

#endif							/* COMMON_HEX_H */