raw_as_char: raw_as_char

Description Usage Arguments Value Examples

View source: R/raw_as_char.r

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

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(argon2)
str <- "some text"
raw <- charToRaw(str)
raw

rawToChar(raw)
raw_as_char(raw)

## End(Not run)

argon2 documentation built on Oct. 31, 2021, 1:06 a.m.