Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
base-n.hh File Reference
#include <string>
#include <span>

Go to the source code of this file.

Functions

std::string nix::base16::encode (std::span< const std::byte > b)
std::string nix::base16::decode (std::string_view s)
std::string nix::base64::encode (std::span< const std::byte > b)
std::string nix::base64::decode (std::string_view s)

Function Documentation

◆ decode() [1/2]

std::string nix::base16::decode ( std::string_view s)

Decode arbitrary Base16 string to bytes.

◆ decode() [2/2]

std::string nix::base64::decode ( std::string_view s)

Decode arbitrary Base64 string to bytes.

◆ encode() [1/2]

std::string nix::base16::encode ( std::span< const std::byte > b)

Encode arbitrary bytes as Base16.

◆ encode() [2/2]

std::string nix::base64::encode ( std::span< const std::byte > b)

Encode arbitrary bytes as Base64.