man-pages/man3/pcre2_serialize_get_number_of_codes.3.html
2021-03-31 01:06:50 +01:00

70 lines
2.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of PCRE2_SERIALIZE_GET_NUMBER_OF_CODES</TITLE>
</HEAD><BODY>
<H1>PCRE2_SERIALIZE_GET_NUMBER_OF_CODES</H1>
Section: C Library Functions (3)<BR>Updated: 27 June 2018<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
PCRE2 - Perl-compatible regular expressions (revised API)
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<P>
<B>#include &lt;<A HREF="file:///usr/include/pcre2.h">pcre2.h</A>&gt;</B>
<P>
<PRE>
<B>int32_t pcre2_serialize_get_number_of_codes(const uint8_t *</B><I>bytes</I>);
</PRE>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
The <I>bytes</I> argument must point to a serialized byte stream that was
originally created by <B>pcre2_serialize_encode()</B> (though it may have been
saved on disc or elsewhere in the meantime). The function returns the number of
serialized patterns in the byte stream, or one of the following negative error
codes:
<P>
<BR>&nbsp;&nbsp;PCRE2_ERROR_BADMAGIC&nbsp;&nbsp;mismatch&nbsp;of&nbsp;id&nbsp;bytes&nbsp;in&nbsp;<I>bytes</I>
<BR>&nbsp;&nbsp;PCRE2_ERROR_BADMODE&nbsp;&nbsp;&nbsp;mismatch&nbsp;of&nbsp;variable&nbsp;unit&nbsp;size&nbsp;or&nbsp;PCRE&nbsp;version
<BR>&nbsp;&nbsp;PCRE2_ERROR_NULL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;argument&nbsp;is&nbsp;NULL
<P>
PCRE2_ERROR_BADMAGIC may mean that the data is corrupt, or that it was compiled
on a system with different endianness.
<P>
There is a complete description of the PCRE2 native API in the
<B>pcre2api</B>
page and a description of the serialization functions in the
<B>pcre2serialize</B>
page.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:50 GMT, March 31, 2021
</BODY>
</HTML>