hexfind: Matching a sequence of bytes

Description Usage Arguments Value

View source: R/utils.R

Description

Locates a sequence of binary data inside a vector of binary data.

Usage

1
hexfind(x, block, cpp = TRUE)

Arguments

x

Vector of type 'raw' where matches are sought.

block

A sequence of bytes to be matched in the given 'raw' vector. Coerced by 'as.raw' to a 'raw' vector if possible. Byte-sized 'integer' and 'hexmode' vectors are valid.

cpp

Setting to 'TRUE' makes use of the C++ implementation.

Value

Vector with the positions of the matches.


andbamp/hexutils documentation built on Dec. 19, 2021, 2:34 a.m.