The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Hyperscan::Database - database class

VERSION

version 0.04

CONSTRUCTORS

compile( $expression, $flags, $mode )

The basic regular expression compiler.

hs_compile

compile_ext_multi( $expressions, $flags, $ids, $ext, $mode )

The multiple regular expression compiler with extended parameter support.

hs_compile_ext_multi

compile_lit( $expression, $flags, $mode )

The basic pure literal expression compiler.

hs_compile_lit

compile_lit_multi( $expressions, $flags, $ids, $mode )

hs_compile_lit_multi

compile_multi( $expressions, $flags, $ids, $mode )

The multiple regular expression compiler.

hs_compile_multi

deserialize( $bytes )

Reconstruct a pattern database from a stream of bytes previously generated by "serialize()".

hs_deserialize_database

METHODS

alloc_scratch()

Allocate a "scratch" space for use by Hyperscan. Returns a Hyperscan::Scratch.

hs_alloc_scratch

info()

Utility function providing information about a database.

hs_database_info

open_stream()

Open and initialise a stream. Returns a Hyperscan::Stream.

hs_open_stream

scan( $data, $flags, $scratch, $callback )

The block (non-streaming) regular expression scanner.

hs_scan

scan_vector( $data, $flags, $scratch, $callback )

The vectored regular expression scanner.

hs_scan_vector

serialize()

Serialize a pattern database to a stream of bytes.

hs_serialize_database

size()

Provides the size of the given database in bytes.

hs_database_size

stream_size()

Provides the size of the stream state allocated by a single stream opened against the given database.

hs_stream_size

AUTHOR

Mark Sikora <marknsikora@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2020 by Mark Sikora.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.