Function ADS::encodeBounded

Function Documentation

inline void ADS::encodeBounded(BitWriter &w, std::uint64_t x, std::uint64_t a, std::uint64_t b)

x - a in ceil( log2( b - a + 1 ) ) bits, the BinaryCode of the notes

Pre:

a <= x <= b