[−][src]Module ptero::method::line_extend
Method which adds extra word when encoding bit (uses pivot, which informs about expected max line length)
Description
This encoder extends line with extra word (to be greater than pivot) to encode bit. If the line length is greater than the pivot the bit 1 is encoded, otherwise 0.
For more info about pivot see LineByPivotIterator.
Behavior
This encoder can return EncodingError when no extra words are found and the bit 1 occurs.
Structs
| LineExtendMethod | Unit structure representing the line extension method. |
Constants
| ASCII_DELIMITER | Character used as the word delimiter. |
| POSSIBLE_LINE_ENDINGS_SET | Set of possible line endings, the set is different from one used crate::method::trailing_unicode as it includes all possible characters, not the curated set used in encoding. |