File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,13 @@ pub trait Fe32IterExt: Sized + Iterator<Item = Fe32> {
66
66
67
67
/// Adapts the `Fe32` iterator to output bytes instead.
68
68
///
69
- /// If the total number of bits is not a multiple of 8, trailing bits
70
- /// are padded with the needed amount of zeroes and converted.
69
+ /// Similar to `fes_to_bytes`, but in this variant trailing bits are kept.
70
+ ///
71
+ /// If the last bits do not fill up the last output byte completely, they
72
+ /// are not dropped, but kept, and the last byte is padded with zero bits.
73
+ /// In effect this is the same as if the input was padded with zero values
74
+ /// (1 or 2), such that there are enough zero bits to fill the last byte.
75
+ /// The output is either the same as of `fes_to_bytes`, or has 1 extra byte.
71
76
#[ inline]
72
77
fn fes_to_bytes_zeropad ( mut self ) -> FesToBytes < Self > {
73
78
FesToBytes {
You can’t perform that action at this time.
0 commit comments