in reply to Re: Faster way to parse binary stream
in thread Faster way to parse binary stream

I hadn't seen the slash template item before. To quote from the docs:

The / template character allows packing and unpacking of strings where the packed structure contains a byte count followed by the string itself. You write length-item/string-item.

Good solution, BrowserUK.


Caution: Contents may have been coded under pressure.
  • Comment on Re^2: Faster way to parse binary stream

Replies are listed 'Best First'.
Re^3: Faster way to parse binary stream
by Anonymous Monk on Jun 19, 2007 at 21:27 UTC
    Thanks to all who replied - the "C/(C/A*)*" looks like the way to go :)