NAME
Hyperscan::Database - database class
VERSION
version 0.04
CONSTRUCTORS
compile( $expression, $flags, $mode )
The basic regular expression compiler.
compile_ext_multi( $expressions, $flags, $ids, $ext, $mode )
The multiple regular expression compiler with extended parameter support.
compile_lit( $expression, $flags, $mode )
The basic pure literal expression compiler.
compile_lit_multi( $expressions, $flags, $ids, $mode )
compile_multi( $expressions, $flags, $ids, $mode )
The multiple regular expression compiler.
deserialize( $bytes )
Reconstruct a pattern database from a stream of bytes previously generated by "serialize()".
METHODS
alloc_scratch()
Allocate a "scratch" space for use by Hyperscan. Returns a Hyperscan::Scratch.
info()
Utility function providing information about a database.
open_stream()
Open and initialise a stream. Returns a Hyperscan::Stream.
scan( $data, $flags, $scratch, $callback )
The block (non-streaming) regular expression scanner.
scan_vector( $data, $flags, $scratch, $callback )
The vectored regular expression scanner.
serialize()
Serialize a pattern database to a stream of bytes.
size()
Provides the size of the given database in bytes.
stream_size()
Provides the size of the stream state allocated by a single stream opened against the given database.
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.