Bit substring search

Kris Kennaway kris at FreeBSD.org
Tue Jun 24 13:44:49 CEST 2008


I am trying to parse a bit-stream file format (bzip2) that does not have 
byte-aligned record boundaries, so I need to do efficient matching of 
bit substrings at arbitrary bit offsets.

Is there a package that can do this?  This one comes close:

http://ilan.schnell-web.net/prog/bitarray/

but it only supports single bit substring match.

Kris



More information about the Python-list mailing list