Function ADS::encodeDense

Function Documentation

inline void ADS::encodeDense(std::vector<std::uint32_t> &out, std::uint64_t x, std::uint32_t s, std::uint32_t c)

the ( s , c )-dense code of x appended to out, a word per item: the continuers s , … , s + c - 1 and then a stopper 0 , … , s - 1

Pre:

s >= 1 and c >= 1

Post:

denseLength( x , s , c ) words written