pstore2
Functions
base32.hpp File Reference
#include <algorithm>
#include <cmath>
#include "pstore/support/uint128.hpp"
Include dependency graph for base32.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename IntType , typename OutputIterator >
OutputIterator pstore::base32::convert (IntType val, OutputIterator out)
 Converts an unsigned integer value to a sequence of base-32 characters. More...
 
template<typename OutputIterator >
OutputIterator pstore::base32::convert (uint128 const wide, OutputIterator out)
 
template<typename IntType >
std::string pstore::base32::convert (IntType val)
 Converts an unsigned integer value (which may be uint128) to a std::string instance containing a sequence of base-32 characters. More...
 

Function Documentation

◆ convert() [1/2]

template<typename IntType , typename OutputIterator >
OutputIterator pstore::base32::convert ( IntType  val,
OutputIterator  out 
)

Converts an unsigned integer value to a sequence of base-32 characters.

The encoding conforms to RFC4648 but does not employ any padding characters. Note that the resulting output has the least significant digit first.

◆ convert() [2/2]

template<typename IntType >
std::string pstore::base32::convert ( IntType  val)

Converts an unsigned integer value (which may be uint128) to a std::string instance containing a sequence of base-32 characters.

Note that the resulting output has the least significant digit first.