1PCRE2_SERIALIZE_GET_NUMBER_OLFi_bCrOaDrEyS(F3u)nctiPoCnRsE2M_aSnEuRaIlALIZE_GET_NUMBER_OF_CODES(3)
2
3
4
6 PCRE2 - Perl-compatible regular expressions (revised API)
7
9
10 #include <pcre2.h>
11
12 int32_t pcre2_serialize_get_number_of_codes(const uint8_t *bytes);
13
15
16 The bytes argument must point to a serialized byte stream that was
17 originally created by pcre2_serialize_encode() (though it may have been
18 saved on disc or elsewhere in the meantime). The function returns the
19 number of serialized patterns in the byte stream, or one of the follow‐
20 ing negative error codes:
21
22 PCRE2_ERROR_BADMAGIC mismatch of id bytes in bytes
23 PCRE2_ERROR_BADMODE mismatch of variable unit size or PCRE version
24 PCRE2_ERROR_NULL the argument is NULL
25
26 PCRE2_ERROR_BADMAGIC may mean that the data is corrupt, or that it was
27 compiled on a system with different endianness.
28
29 There is a complete description of the PCRE2 native API in the pcre2api
30 page and a description of the serialization functions in the pcre2seri‐
31 alize page.
32
33
34
35PCRE2 10.32 27 JuneP2C0R1E82_SERIALIZE_GET_NUMBER_OF_CODES(3)