Template Function ADS::arithmeticDecode

Function Documentation

template<class C>
std::vector<C> ADS::arithmeticDecode(std::span<const std::uint8_t> code, std::size_t n, const std::map<C, std::uint64_t> &counts, int w = 32)

the n symbols of the code with the static model of the counts

Pre:

as arithmeticEncode()