how to search "n bits" in a byte array?
Posted
by ZhengZhiren
on Stack Overflow
See other posts from Stack Overflow
or by ZhengZhiren
Published on 2010-05-31T12:51:25Z
Indexed on
2010/05/31
13:03 UTC
Read the original article
Hit count: 195
i have a byte array. Now i need to know the count of appearances of a bit pattern which length is N.
For example, my byte array is "00100100 10010010" and the pattern is "001". here N=3, and the count is 5.
Dealing with bits is always my weak side.
© Stack Overflow or respective owner