I've the following problem:
I have a binary data string optained by uncompressing a file:
$uncompresseddata = gzuncompress($compresseddata);
Now I want to extract variables from this data (500K+), so normally I would use:
$values = unpack("Vvalue/C4byte", $uncompresseddata);
But I have 2 problems:
1. The data is spread over the whole string, at variable positions and the string is rather large, so I don't want to unpack it completely, I want to "random access" the data.
2. Some values are zero-terminted strings, so I can't use unpack to extract them. How do I obtain these ?
Thanks in advance.