hexdecode: Decode binary data

Description Usage Arguments Value

View source: R/utils.R

Description

Decode a block of binary data based on a specified character encoding.

Usage

1
hexdecode(block, encoding, nomatch = NA, collapse = NULL)

Arguments

block

Vector of type 'raw'.

encoding

'data.frame' or 'list' of length 2. First item denotes byte, second item denotes equivalent decoded character.

nomatch

Character on to which bytes not on the character map should be decoded.

collapse

An optional character string to separate the results, as in paste.

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.