github的一些开源项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.6 KiB

  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>
  8. Return to the <a href="index.html">PCRE2 index page</a>.
  9. </p>
  10. <p>
  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.
  14. <br>
  15. <br><b>
  16. SYNOPSIS
  17. </b><br>
  18. <P>
  19. <b>#include &#60;pcre2.h&#62;</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>
  25. DESCRIPTION
  26. </b><br>
  27. <P>
  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
  32. codes:
  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>
  38. PCRE2_ERROR_BADMAGIC may mean that the data is corrupt, or that it was compiled
  39. on a system with different endianness.
  40. </P>
  41. <P>
  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>
  46. page.
  47. <p>
  48. Return to the <a href="index.html">PCRE2 index page</a>.
  49. </p>