pack_differentiae

pack_differentiae(strata: Iterable[HereditaryStratum], differentia_bit_width: int) str

Pack a sequence of differentiae together into a compact representation.

Returns a string with base 64 encoded concatenation of diffferentiae. If differentia_bit_width is not an even byte multiple, the first encoded byte tells how many empty padding bits, if any, were placed at the end of the concatenation in order to align the bitstring end to byte boundaries.

Deprecated since version 1.8.0: Use pack_differentiae_str instead.