keichi / binary-parser

A blazing-fast declarative parser builder for binary data
MIT License
864 stars 134 forks source link

Seek: number of bits #206

Open enricovittorini opened 2 years ago

enricovittorini commented 2 years ago

How to seek x-number of bits? I understood correctly Seek works by byte. thanks!

keichi commented 2 years ago

Hi @enricovittorini, unfortunately seeking by bits is not possible right now. We do not provide this feature because bit field sequences need to be byte-aligned. So we cannot let the user seek to an arbitrary bit offset.