hexsplit: Split the elements of a raw vector

Description Usage Arguments Value

View source: R/utils.R

Description

Split the elements of a raw vector into chunks according to the matches to byte sequence 'split' within them.

Usage

1
hexsplit(x, split, cpp = TRUE)

Arguments

x

Vector of type 'raw'.

split

Sequence of bytes to use for splitting. 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

A list of the same length as the number of splits of the byte sequence.


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