R/RcppExports.R

Defines functions find_sequence

Documented in find_sequence

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' Find the first occurrence (if any) of a sequence of raw bytes
#' (\code{pattern}) in \code{buffer}.
#'
#' @param buffer vector to search in
#' @param pattern sequence of bytes to look for
#' @return index in \code{buffer} or \code{-1} if not found
#' @export
find_sequence <- function(buffer, pattern) {
    .Call('_burrp_find_sequence', PACKAGE = 'burrp', buffer, pattern)
}
hrbrmstr/burrp documentation built on April 16, 2021, 3:15 a.m.