Checking for a bit pattern
I have an array of 30 bytes and need to parse through it checking for a 7 bit pattern of 0100111 when found move foward 233 bit into the next frame and check for the alternate pattern of 1011000 I'm having problems changing from a byte array to a bitarray can anyone point me in the right direction??