Quote Originally Posted by JohnW@Wessex View Post
What is the criteria for the count?

0, 1,2,3,0,04,5,0,0,0,6,7

What do you want the above to count as? 2? 5? 6?
Sorry, I admit that my question was not clear.

If I have the following binary stream in hex representation:

Code:
00 01 02 03 00 00 04 05 00 00 00 06 07
what I want is to obtain the size of the "largest" sequence of consecutive NULL bytes, which is 3 in above example.