Since ``binary::digits`` tells you how many bits there are in a ``binary::value_type`` this should be ``size_to_length<binary>(bytes)*binary::digits``.

Here you assume that binary uses ``uint8_t`` as value_type that might not always stay that way.