Find spots in a raw vector that match a given byte sequence.
Arguments
- input
a vector of raw (byte) values.
- b1
a vector of bytes to match (must be of length 2 or 3 at present; for 1-byte, use
which()
).- ...
additional bytes to match for (up to 2 permitted)