Header menu logo B2R2

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

BytePattern.``match`` pattern bs

Full Usage: BytePattern.``match`` pattern bs

Parameters:
Returns: bool

Check if the given byte array (bs) matches the pattern. The comparison starts at the very first byte of the arrays.

pattern : BytePattern
bs : byte[]
Returns: bool

BytePattern.matchSpan pattern span

Full Usage: BytePattern.matchSpan pattern span

Parameters:
Returns: bool

Check if the given span matches the pattern. The comparison starts at the offset zero.

pattern : ByteValue array
span : ReadOnlySpan<byte>
Returns: bool

Type something to start searching.