BytePattern Module
Provides functions to work with BytePattern. It includes functions to match a byte array or a span against a BytePattern.
Functions and values
| Function or value |
Description
|
Full Usage:
BytePattern.isMatch pattern bs
Parameters:
BytePattern
bs : byte[]
Returns: bool
|
Checks if the given byte array (bs) matches the pattern. The comparison starts at the very first byte of the arrays.
|
Full Usage:
BytePattern.isMatchSpan pattern span
Parameters:
ByteValue array
span : ReadOnlySpan<byte>
Returns: bool
|
Checks if the given span matches the pattern. The comparison starts at the offset zero.
|
B2R2