|
PostgreSQL Source Code git master
|
#include "postgres.h"#include <ctype.h>#include "mb/pg_wchar.h"#include "port/simd.h"#include "utils/builtins.h"#include "utils/memutils.h"#include "varatt.h"
Go to the source code of this file.
Data Structures | |
| struct | pg_encoding |
Macros | |
| #define | VAL(CH) ((CH) - '0') |
| #define | DIG(VAL) ((VAL) + '0') |
Variables | ||
| static const char | hextbl [512] | |
| static const int8 | hexlookup [128] | |
| static const char | _base64 [] | |
| static const char | _base64url [] | |
| static const int8 | b64lookup [128] | |
| struct { | ||
| const char * name | ||
| struct pg_encoding enc | ||
| } | enclist [] | |
| Datum binary_decode | ( | PG_FUNCTION_ARGS | ) |
Definition at line 99 of file encode.c.
References data, pg_encoding::decode, pg_encoding::decode_len, elog, enc, ereport, errcode(), errhint(), errmsg(), ERROR, FATAL, fb(), MaxAllocSize, name, palloc(), pg_find_encoding(), PG_GETARG_DATUM, PG_GETARG_TEXT_PP, PG_RETURN_BYTEA_P, SET_VARSIZE(), TextDatumGetCString, VARDATA(), VARDATA_ANY(), VARHDRSZ, and VARSIZE_ANY_EXHDR().
| Datum binary_encode | ( | PG_FUNCTION_ARGS | ) |
Definition at line 49 of file encode.c.
References data, elog, enc, pg_encoding::encode, pg_encoding::encode_len, ereport, errcode(), errhint(), errmsg(), ERROR, FATAL, fb(), MaxAllocSize, name, palloc(), pg_find_encoding(), PG_GETARG_BYTEA_PP, PG_GETARG_DATUM, PG_RETURN_TEXT_P, SET_VARSIZE(), TextDatumGetCString, VARDATA(), VARDATA_ANY(), VARHDRSZ, and VARSIZE_ANY_EXHDR().
Definition at line 786 of file encode.c.
References ereport, errcode(), errmsg(), ERROR, fb(), and len.
Definition at line 717 of file encode.c.
References ereport, errcode(), errmsg(), ERROR, fb(), len, VAL, and val.
Definition at line 265 of file encode.c.
References fb(), hex_decode_safe(), and len.
Definition at line 351 of file encode.c.
References fb(), hex_decode_safe_scalar(), i, len, success, and vector8_load().
Referenced by byteain(), and hex_decode().
|
inlinestatic |
Definition at line 271 of file encode.c.
References ereturn, errcode(), errmsg(), fb(), get_hex(), len, and pg_mblen().
Referenced by hex_decode_safe().
Definition at line 202 of file encode.c.
References fb(), hex_encode_scalar(), i, len, vector8_broadcast(), and vector8_load().
Referenced by AddFileToBackupManifest(), byteaout(), and SendBackupManifest().
Definition at line 610 of file encode.c.
References fb(), len, and pg_base64_decode_internal().
|
static |
Definition at line 510 of file encode.c.
References b, b64lookup, buf, ereport, errcode(), errhint(), errmsg(), ERROR, fb(), len, and pg_mblen().
Referenced by pg_base64_decode(), and pg_base64url_decode().
Definition at line 492 of file encode.c.
References fb(), len, and pg_base64_encode_internal().
|
static |
Definition at line 431 of file encode.c.
References _base64, _base64url, buf, fb(), and len.
Referenced by pg_base64_encode(), and pg_base64url_encode().
Definition at line 616 of file encode.c.
References fb(), len, and pg_base64_decode_internal().
Definition at line 498 of file encode.c.
References fb(), len, and pg_base64_encode_internal().
Definition at line 872 of file encode.c.
References enclist, fb(), i, name, and pg_strcasecmp().
Referenced by binary_decode(), and binary_encode().
Definition at line 406 of file encode.c.
Referenced by pg_base64_encode_internal().
Definition at line 409 of file encode.c.
Referenced by pg_base64_encode_internal().
Definition at line 412 of file encode.c.
Referenced by pg_base64_decode_internal().
| struct pg_encoding enc |
Definition at line 835 of file encode.c.
Referenced by binary_decode(), and binary_encode().
| const struct { ... } enclist[] |
Referenced by pg_find_encoding().
Definition at line 174 of file encode.c.
Definition at line 156 of file encode.c.
Referenced by hex_encode_scalar().
Definition at line 834 of file encode.c.
Referenced by binary_decode(), binary_encode(), and pg_find_encoding().