base32_encode: Encode integer vector into base-32deck code

View source: R/base32_handling.R

base32_encodeR Documentation

Encode integer vector into base-32deck code

Description

Deck lists are stored and shared in an RFC 4648 base-32 code. This function takes an integer representation of the deck list (according to these rules) and encodes them via varint bytes into base-32

Usage

base32_encode(int_decklist)

Arguments

int_decklist

integer vector describing the deck list

Value

character deck code in base 32 (RFC 4648)

Examples

lordecks:::base32_encode(c("17", "6", "1", "1", "5", "29", "1", "2", "4", "8", "1", "4",
 "4", "5", "2", "1", "4", "51", "52", "2", "3", "5", "4", "6", "3", "3", "4", "5",
 "13", "18", "2", "1", "1", "4", "54", "2", "1", "5", "19", "47", "2", "1", "3",
 "5", "12", "3", "1", "5", "1", "25", "33"))
#"CEDACAIFDUAQEBAIAECAIBICAECDGNACAMCQIBQDAMCAKDISAIAQCBBWAIAQKEZPAIAQGBIMAMAQKAIZEE"

pholzmgit/lordecks documentation built on May 23, 2022, 11:03 a.m.