B2R2


BytePattern Module

Functions and values

Function or value Description

match pattern bs

Full Usage: 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

matchSpan pattern span

Full Usage: matchSpan pattern span

Parameters:
Returns: bool

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

pattern : ByteValue[]
span : ReadOnlySpan<byte>
Returns: bool