Home | History | Annotate | Download | only in contrib

Lines Matching defs:EOS

673 class EOS(object):
689 EOS)
693 # type: (Union[None, HuffmanNode, EOS, str], Union[None, HuffmanNode, EOS, str]) -> None
698 # type: (int) -> Union[None, HuffmanNode, EOS, str]
702 # type: (int, Union[None, HuffmanNode, EOS, str]) -> None
994 # type: (Union[str, EOS]) -> Tuple[int, int]
998 @param str|EOS c: a symbol to encode
1002 if isinstance(c, EOS):
1027 val, bl = cls._huffman_encode_char(EOS())
1070 elif isinstance(elmt, EOS):
1071 raise InvalidEncodingException('Huffman decoder met the full EOS symbol')
1085 # of the EOS symbol
1161 parent[b] = chb(i) if i < 256 else EOS()