Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for numSites (0.05 sec)

  1. src/main/java/jcifs/smb1/netbios/SocketInputStream.java

        }
        public synchronized long skip( long numbytes ) throws IOException {
            if( numbytes <= 0 ) {
                return 0;
            }
            long n = numbytes;
            while( n > 0 ) {
                int r = read( tmp, 0, (int)Math.min( (long)TMP_BUFFER_SIZE, n ));
                if (r < 0) {
                    break;
                }
                n -= r;
            }
            return numbytes - n;
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 3.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/MathBenchmarking.java

        BigInteger result = randomPositiveBigInteger(numBits);
        return RANDOM_SOURCE.nextBoolean() ? result : result.negate();
      }
    
      /**
       * Chooses a number in (-2^numBits, 2^numBits) at random, with density concentrated in numbers of
       * lower magnitude.
       */
      static BigInteger randomBigInteger(int numBits) {
        while (true) {
          if (RANDOM_SOURCE.nextBoolean()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/MathBenchmarking.java

        BigInteger result = randomPositiveBigInteger(numBits);
        return RANDOM_SOURCE.nextBoolean() ? result : result.negate();
      }
    
      /**
       * Chooses a number in (-2^numBits, 2^numBits) at random, with density concentrated in numbers of
       * lower magnitude.
       */
      static BigInteger randomBigInteger(int numBits) {
        while (true) {
          if (RANDOM_SOURCE.nextBoolean()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/TestLocking.java

    {
    
        int numThreads = 1;
        int numIter = 1;
        long delay = 100;
        String url = null;
        int numComplete = 0;
        long ltime = 0L;
    
        public void run()
        {
            try {
                SmbFile f = new SmbFile(url);
                SmbFile d = new SmbFile(f.getParent());
                byte[] buf = new byte[1024];
    
                for (int ii = 0; ii < numIter; ii++) {
    
                    synchronized (this) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 3.4K bytes
    - Viewed (0)
  5. cmd/os-readdir_test.go

    			if !checkResult(r.entries, entries) {
    				t.Fatalf("expected = %s, got: %s", r.entries, entries)
    			}
    		}
    	}
    }
    
    func TestReadDirN(t *testing.T) {
    	testCases := []struct {
    		numFiles    int
    		n           int
    		expectedNum int
    	}{
    		{0, 0, 0},
    		{0, 1, 0},
    		{1, 0, 0},
    		{0, -1, 0},
    		{1, -1, 1},
    		{10, -1, 10},
    		{1, 1, 1},
    		{2, 1, 1},
    		{10, 9, 9},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 7.5K bytes
    - Viewed (0)
Back to top