You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a minor feature request:
The Fe32->bytes conversion -- fes_to_bytes in primitives/iter.rs -- drops the last incomplete byte:
If the total number of bits is not a multiple of 8, any trailing bits are simply dropped
In some use cases padding with 0 bits is needed (rather than dropping bits). Currently this can be achieved by appending the input with 0, 1, or 2 0 values (depending the input length), before doing the conversion.
It would be nice if this is provided as a possibility in conversion (e.g. by a different method fes_to_bytes_pad or an parameter flag).