pack_differentiae_str

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

Pack a sequence of differentiae together into a compact string 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.