public static int readVarInt(ByteBuffer buff){
  int b=buff.get();
  if (b >= 0) {
    return b;
  }
  return readVarIntRest(buff,b);
}

public static int readVarInt ( ByteBuffer buff ) { int b = buff . get ( ) ; if ( b >= 0 ) { return b ; } return readVarIntRest ( buff , b ) ; }
read a variable size int .
