raw_as_char: raw_as_char

View source: R/raw_as_char.r

raw_as_charR Documentation

raw_as_char

Description

Convert the literal bytes of a raw (unsigned char*) to a string representation. This is different from R's rawToChar(). See examples for details.

Usage

raw_as_char(raw, upper = TRUE, spaces = FALSE)

Arguments

raw

A raw vector.

upper

Should hex digits A-F be given in uppercase?

spaces

Should the str use spaces?

Value

A character string.

Examples

## Not run: 
library(argon2)
str <- "some text"
raw <- charToRaw(str)
raw

rawToChar(raw)
raw_as_char(raw)

## End(Not run)


wrathematics/argon2 documentation built on March 9, 2023, 10:08 p.m.