php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
pcre2_serialize.c File Reference
#include "pcre2_internal.h"

Go to the source code of this file.

Macros

#define SERIALIZED_DATA_MAGIC   0x50523253u
 
#define SERIALIZED_DATA_VERSION    ((PCRE2_MAJOR) | ((PCRE2_MINOR) << 16))
 
#define SERIALIZED_DATA_CONFIG    (sizeof(PCRE2_UCHAR) | ((sizeof(void*)) << 8) | ((sizeof(PCRE2_SIZE)) << 16))
 

Functions

PCRE2_EXP_DEFN int32_t PCRE2_CALL_CONVENTION pcre2_serialize_encode (const pcre2_code **codes, int32_t number_of_codes, uint8_t **serialized_bytes, PCRE2_SIZE *serialized_size, pcre2_general_context *gcontext)
 
PCRE2_EXP_DEFN int32_t PCRE2_CALL_CONVENTION pcre2_serialize_decode (pcre2_code **codes, int32_t number_of_codes, const uint8_t *bytes, pcre2_general_context *gcontext)
 
PCRE2_EXP_DEFN int32_t PCRE2_CALL_CONVENTION pcre2_serialize_get_number_of_codes (const uint8_t *bytes)
 
PCRE2_EXP_DEFN void PCRE2_CALL_CONVENTION pcre2_serialize_free (uint8_t *bytes)
 

Macro Definition Documentation

◆ SERIALIZED_DATA_CONFIG

#define SERIALIZED_DATA_CONFIG    (sizeof(PCRE2_UCHAR) | ((sizeof(void*)) << 8) | ((sizeof(PCRE2_SIZE)) << 16))

Definition at line 62 of file pcre2_serialize.c.

◆ SERIALIZED_DATA_MAGIC

#define SERIALIZED_DATA_MAGIC   0x50523253u

Definition at line 54 of file pcre2_serialize.c.

◆ SERIALIZED_DATA_VERSION

#define SERIALIZED_DATA_VERSION    ((PCRE2_MAJOR) | ((PCRE2_MINOR) << 16))

Definition at line 59 of file pcre2_serialize.c.

Function Documentation

◆ pcre2_serialize_decode()

PCRE2_EXP_DEFN int32_t PCRE2_CALL_CONVENTION pcre2_serialize_decode ( pcre2_code ** codes,
int32_t number_of_codes,
const uint8_t * bytes,
pcre2_general_context * gcontext )

Definition at line 163 of file pcre2_serialize.c.

◆ pcre2_serialize_encode()

PCRE2_EXP_DEFN int32_t PCRE2_CALL_CONVENTION pcre2_serialize_encode ( const pcre2_code ** codes,
int32_t number_of_codes,
uint8_t ** serialized_bytes,
PCRE2_SIZE * serialized_size,
pcre2_general_context * gcontext )

Definition at line 72 of file pcre2_serialize.c.

◆ pcre2_serialize_free()

PCRE2_EXP_DEFN void PCRE2_CALL_CONVENTION pcre2_serialize_free ( uint8_t * bytes)

Definition at line 277 of file pcre2_serialize.c.

◆ pcre2_serialize_get_number_of_codes()

PCRE2_EXP_DEFN int32_t PCRE2_CALL_CONVENTION pcre2_serialize_get_number_of_codes ( const uint8_t * bytes)

Definition at line 259 of file pcre2_serialize.c.