1<html> 2<head> 3<title>pcre2_serialize_get_number_of_codes specification</title> 4</head> 5<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB"> 6<h1>pcre2_serialize_get_number_of_codes man page</h1> 7<p> 8Return to the <a href="index.html">PCRE2 index page</a>. 9</p> 10<p> 11This page is part of the PCRE2 HTML documentation. It was generated 12automatically from the original man page. If there is any nonsense in it, 13please consult the man page, in case the conversion went wrong. 14<br> 15<br><b> 16SYNOPSIS 17</b><br> 18<P> 19<b>#include <pcre2.h></b> 20</P> 21<P> 22<b>int32_t pcre2_serialize_get_number_of_codes(const uint8_t *<i>bytes</i>);</b> 23</P> 24<br><b> 25DESCRIPTION 26</b><br> 27<P> 28The <i>bytes</i> argument must point to a serialized byte stream that was 29originally created by <b>pcre2_serialize_encode()</b> (though it may have been 30saved on disc or elsewhere in the meantime). The function returns the number of 31serialized patterns in the byte stream, or one of the following negative error 32codes: 33<pre> 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 37</pre> 38PCRE2_ERROR_BADMAGIC may mean that the data is corrupt, or that it was compiled 39on a system with different endianness. 40</P> 41<P> 42There is a complete description of the PCRE2 native API in the 43<a href="pcre2api.html"><b>pcre2api</b></a> 44page and a description of the serialization functions in the 45<a href="pcre2serialize.html"><b>pcre2serialize</b></a> 46page. 47<p> 48Return to the <a href="index.html">PCRE2 index page</a>. 49</p> 50