A type containing error details that is returned by the compile calls (@ref
hs_compile(), @ref hs_compile_multi() and @ref hs_compile_ext_multi()) on
failure. The caller may inspect the values returned in this type to
determine the cause of failure.
A structure containing additional parameters related to an expression,
passed in at build time to @ref hs_compile_ext_multi() or @ref
hs_expression_ext_info.
A type containing information on the target platform which may optionally be
provided to the compile calls (@ref hs_compile(), @ref hs_compile_multi(),
@ref hs_compile_ext_multi()).
Creates a compressed representation of the provided stream in the buffer
provided. This compressed representation can be converted back into a stream
state by using @ref hs_expand_stream() or @ref hs_reset_and_expand_stream().
The size of the compressed representation will be placed into @p used_space.
Utility function providing information about a regular expression, with
extended parameter support. The information provided in @ref hs_expr_info_t
includes the minimum and maximum width of a pattern match.
Utility function providing information about a regular expression. The
information provided in @ref hs_expr_info_t includes the minimum and maximum
width of a pattern match.
Duplicate the given ‘from’ stream state onto the ‘to’ stream. The ‘to’ stream
will first be reset (reporting any EOD matches if a non-NULL @p onEvent
callback handler is provided).
Decompresses a compressed representation created by @ref hs_compress_stream()
on top of the ‘to’ stream. The ‘to’ stream will first be reset (reporting
any EOD matches if a non-NULL @p onEvent callback handler is provided).
Set the allocate and free functions used by Hyperscan for allocating
memory at runtime for stream state, scratch space, database bytecode,
and various other data structure returned by the Hyperscan API.
Set the allocate and free functions used by Hyperscan for allocating memory
for database bytecode produced by the compile calls (@ref hs_compile(), @ref
hs_compile_multi(), @ref hs_compile_ext_multi()) and by database
deserialization (@ref hs_deserialize_database()).
Set the allocate and free functions used by Hyperscan for allocating memory
for items returned by the Hyperscan API such as @ref hs_compile_error_t, @ref
hs_expr_info_t and serialized databases.
The type of the callback function that will be used by Hyperscan to allocate
more memory at runtime as required, for example in @ref hs_open_stream() to
allocate stream state.
A type containing error details that is returned by the compile calls (@ref
hs_compile(), @ref hs_compile_multi() and @ref hs_compile_ext_multi()) on
failure. The caller may inspect the values returned in this type to
determine the cause of failure.
A structure containing additional parameters related to an expression,
passed in at build time to @ref hs_compile_ext_multi() or @ref
hs_expression_ext_info.
A type containing information on the target platform which may optionally be
provided to the compile calls (@ref hs_compile(), @ref hs_compile_multi(),
@ref hs_compile_ext_multi()).