|
-
April 15th, 2010, 03:00 AM
#3
Re: counting consecutive null characters
 Originally Posted by JohnW@Wessex
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|