1 .TH PCRE2_SERIALIZE_GET_NUMBER_OF_CODES 3 "27 June 2018" "PCRE2 10.32"
3 PCRE2 - Perl-compatible regular expressions (revised API)
10 .B int32_t pcre2_serialize_get_number_of_codes(const uint8_t *\fIbytes\fP);
16 The \fIbytes\fP argument must point to a serialized byte stream that was
17 originally created by \fBpcre2_serialize_encode()\fP (though it may have been
18 saved on disc or elsewhere in the meantime). The function returns the number of
19 serialized patterns in the byte stream, or one of the following negative error
22 PCRE2_ERROR_BADMAGIC mismatch of id bytes in \fIbytes\fP
23 PCRE2_ERROR_BADMODE mismatch of variable unit size or PCRE version
24 PCRE2_ERROR_NULL the argument is NULL
26 PCRE2_ERROR_BADMAGIC may mean that the data is corrupt, or that it was compiled
27 on a system with different endianness.
29 There is a complete description of the PCRE2 native API in the
33 page and a description of the serialization functions in the