public static int skipToNextMatchingShort ( byte [ ] buffer , int offset , int value ) { int nextOffset = offset ; while ( getShort ( buffer , nextOffset ) != value ) { ++ nextOffset ; } nextOffset += 2 ; return nextOffset ; }
Skip to the next matching short value .