3 <title>pcre2_serialize_get_number_of_codes specification</title>
5 <body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
6 <h1>pcre2_serialize_get_number_of_codes man page</h1>
8 Return to the <a href="index.html">PCRE2 index page</a>.
11 This page is part of the PCRE2 HTML documentation. It was generated
12 automatically from the original man page. If there is any nonsense in it,
13 please consult the man page, in case the conversion went wrong.
19 <b>#include <pcre2.h></b>
22 <b>int32_t pcre2_serialize_get_number_of_codes(const uint8_t *<i>bytes</i>);</b>
28 The <i>bytes</i> argument must point to a serialized byte stream that was
29 originally created by <b>pcre2_serialize_encode()</b> (though it may have been
30 saved on disc or elsewhere in the meantime). The function returns the number of
31 serialized patterns in the byte stream, or one of the following negative error
34 PCRE2_ERROR_BADMAGIC mismatch of id bytes in <i>bytes</i>
35 PCRE2_ERROR_BADMODE mismatch of variable unit size or PCRE version
36 PCRE2_ERROR_NULL the argument is NULL
38 PCRE2_ERROR_BADMAGIC may mean that the data is corrupt, or that it was compiled
39 on a system with different endianness.
42 There is a complete description of the PCRE2 native API in the
43 <a href="pcre2api.html"><b>pcre2api</b></a>
44 page and a description of the serialization functions in the
45 <a href="pcre2serialize.html"><b>pcre2serialize</b></a>
48 Return to the <a href="index.html">PCRE2 index page</a>.