private int skipPast ( byte [ ] data , int pos , byte target ) { int index = pos ; while ( index < data . length ) { if ( target == data [ index ++ ] ) { return index ; } } return index ; }
Skip until it runs out of input data or finds the target byte .