Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1161 - 1170 of 3,507 for INT (0.01 sec)

  1. android/guava-tests/benchmark/com/google/common/base/StopwatchBenchmark.java

    public class StopwatchBenchmark {
      @Benchmark
      long stopwatch(int reps) {
        long total = 0;
        for (int i = 0; i < reps; i++) {
          Stopwatch s = Stopwatch.createStarted();
          // here is where you would do something
          total += s.elapsed(NANOSECONDS);
        }
        return total;
      }
    
      @Benchmark
      long manual(int reps) {
        long total = 0;
        for (int i = 0; i < reps; i++) {
          long start = System.nanoTime();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/info/Smb2SetInfoResponse.java

         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int)
         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException {
            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (structureSize != 2) {
                throw new SMBProtocolDecodingException("Expected structureSize = 2");
            }
            return 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

            .isLessThan(Thread.currentThread().getStackTrace().length + 100);
      }
    
      private static final class LongHolder {
        long count;
      }
    
      private static final int ITERATION_COUNT = 50_000;
      private static final int DIRECT_EXECUTIONS_PER_THREAD = 100;
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testAvoidsStackOverflow_multipleThreads() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 20:58:01 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  4. cmd/peer-s3-client.go

    	GetHost() string
    	SetPools([]int)
    	GetPools() []int
    }
    
    type localPeerS3Client struct {
    	node  Node
    	pools []int
    }
    
    func (l *localPeerS3Client) GetHost() string {
    	return l.node.Host
    }
    
    func (l *localPeerS3Client) SetPools(p []int) {
    	l.pools = make([]int, len(p))
    	copy(l.pools, p)
    }
    
    func (l localPeerS3Client) GetPools() []int {
    	return l.pools
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

            void testGetPathConsumed() {
                int pathConsumed = 20;
    
                // Test with mock
                when(mockReferralData.getPathConsumed()).thenReturn(pathConsumed);
                assertEquals(pathConsumed, mockReferralData.getPathConsumed());
                verify(mockReferralData, times(1)).getPathConsumed();
    
                // Test with concrete implementation
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/SID.java

         */
        int SID_TYPE_ALIAS = 4;
    
        /**
         * SID type indicating a well-known group.
         */
        int SID_TYPE_WKN_GRP = 5;
    
        /**
         * SID type indicating a deleted account.
         */
        int SID_TYPE_DELETED = 6;
    
        /**
         * SID type indicating an invalid SID.
         */
        int SID_TYPE_INVALID = 7;
    
        /**
         * SID type indicating an unknown account type.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/FileNotifyInformationTest.java

            }
        }
    
        // Helper methods
        private boolean isPowerOfTwo(int n) {
            return n > 0 && (n & (n - 1)) == 0;
        }
    
        private FileNotifyInformation createImplementation(final int action, final String fileName) {
            return new FileNotifyInformation() {
                @Override
                public int getAction() {
                    return action;
                }
    
                @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/ShortsTest.java

      public void testConcat_overflow_negative() {
        int dim1 = 1 << 16;
        int dim2 = 1 << 15;
        assertThat(dim1 * dim2).isLessThan(0);
        testConcatOverflow(dim1, dim2);
      }
    
      @GwtIncompatible // different overflow behavior; could probably be made to work by using ~~
      public void testConcat_overflow_nonNegative() {
        int dim1 = 1 << 16;
        int dim2 = 1 << 16;
        assertThat(dim1 * dim2).isAtLeast(0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/CacheEvictionTest.java

      }
    
      private static void getAll(LoadingCache<Integer, Integer> cache, List<Integer> keys) {
        for (int i : keys) {
          cache.getUnchecked(i);
        }
      }
    
      private Object objectWithHash(int hash) {
        return new Object() {
          @Override
          public int hashCode() {
            return hash;
          }
        };
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 15K bytes
    - Viewed (0)
  10. src/test/java/jcifs/netbios/NbtExceptionTest.java

         */
        @Test
        @DisplayName("NbtException constructor should correctly set error class, error code, and message")
        void testConstructor() {
            int errorClass = NbtException.ERR_NAM_SRVC;
            int errorCode = NbtException.FMT_ERR;
            NbtException exception = new NbtException(errorClass, errorCode);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.9K bytes
    - Viewed (0)
Back to top