public static int countVarIntsInRange(ByteData byteData, long fieldPosition, int length) {
        int numInts = 0;

        boolean insideInt = false;

        for(int i=0;i<length;i++) {
            byte b = byteData.get(fieldPosition + i);

            if((b & 0x80) == 0) {
                numInts++;
                insideInt = false;
            } else if(!insideInt && b == (byte)0x80) {
                numInts++;
            } else {
                insideInt = true;
            }
        }

        return numInts;
    }
public static int countVarIntsInRange(ByteData byteData, long fieldPosition, int length) {
        int numInts = 0;

        boolean insideInt = false;

        for(int i=0;i<length;i++) {
            byte b = byteData.get(fieldPosition + i);

            if((b & 0x80) == 0) {
                numInts++;
                insideInt = false;
            } else if(!insideInt && b == (byte)0x80) {
                numInts++;
            } else {
                insideInt = true;
            }
        }

        return numInts;
    }
public static int countVarIntsInRange ( ByteData byteData , long fieldPosition , int length ) { int numInts = 0 ; boolean insideInt = false ; for ( int i = 0 ; i < length ; i ++ ) { byte b = byteData . get ( fieldPosition + i ) ; if ( ( b & 0x80 ) == 0 ) { numInts ++ ; insideInt = false ; } else if ( ! insideInt && b == ( byte ) 0x80 ) { numInts ++ ; } else { insideInt = true ; } } return numInts ; }
Count the number of variable length integers encoded in the supplied {@link ByteData} in the specified range.
@param byteData the byte data
@param fieldPosition the field position
@param length the length
@return number of variable length integers encoded over a range in the byte data
Count the number of variable length integers encoded in the supplied {