public static int skipVarint(ByteBuffer buffer){
  int skipped=1;
  long bytevalue;
  while (((bytevalue=buffer.get()) & 0x80L) != 0) {
    skipped++;
    Preconditions.checkArgument(skipped <= 9,"Variable length quantity is too long");
  }
  return skipped;
}

public static int skipVarint ( ByteBuffer buffer ) { int skipped = 1 ; long bytevalue ; while ( ( ( bytevalue = buffer . get ( ) ) & 0x80L ) != 0 ) { skipped ++ ; Preconditions . checkArgument ( skipped <= 9 , "Variable length quantity is too long" ) ; } return skipped ; }
skip a varint in a bytebuffer
