Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 125 for Capacity (0.06 seconds)

  1. src/test/java/jcifs/smb1/smb1/AllocInfoTest.java

        @ParameterizedTest
        @ValueSource(longs = { 0L, -1L, Long.MAX_VALUE })
        @DisplayName("capacity may be any long value")
        void testCapacityEdgeValues(long capacity) {
            when(mockAllocInfo.getCapacity()).thenReturn(capacity);
            assertEquals(capacity, mockAllocInfo.getCapacity());
        }
    
        /**
         * Null pointer scenario – calls on a null reference should raise
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/AllocInfo.java

    /**
     * Interface for file system allocation information providing capacity and free space details.
     * Used in SMB protocol operations to query disk space information from remote SMB shares.
     *
     * @author mbechler
     */
    public interface AllocInfo extends FileSystemInformation {
    
        /**
         * Gets the total capacity of the allocation.
         *
         * @return total capacity
         */
        long getCapacity();
    
        /**
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/AllocInfoTest.java

            private final long capacity;
            private final long free;
            private byte fileSystemInformationClass = FS_SIZE_INFO;
    
            TestAllocInfo(long capacity, long free) {
                this.capacity = capacity;
                this.free = free;
            }
    
            TestAllocInfo(long capacity, long free, byte fileSystemInformationClass) {
                this.capacity = capacity;
                this.free = free;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  4. internal/bpool/bpool_test.go

    	for range size {
    		bp.Get() // discard
    	}
    
    	// Try putting some invalid buffers into pool
    	bp.Put(make([]byte, bp.w, bp.wcap-1)) // wrong capacity is rejected (less)
    	bp.Put(make([]byte, bp.w, bp.wcap+1)) // wrong capacity is rejected (more)
    	bp.Put(make([]byte, width))           // wrong capacity is rejected (very less)
    	if len(bp.c) > 0 {
    		t.Fatal("bytepool should have rejected invalid packets")
    	}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/Queues.java

       * @since 12.0
       */
      @J2ktIncompatible
      @GwtIncompatible // LinkedBlockingDeque
      public static <E> LinkedBlockingDeque<E> newLinkedBlockingDeque(int capacity) {
        return new LinkedBlockingDeque<>(capacity);
      }
    
      /**
       * Creates a {@code LinkedBlockingDeque} with a capacity of {@link Integer#MAX_VALUE}, containing
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Nov 04 17:24:58 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  6. cmd/notification-summary.go

    			capacity += disk.TotalSpace
    		}
    	}
    	return capacity
    }
    
    // GetTotalCapacityFree gets the total capacity free in the cluster.
    func GetTotalCapacityFree(diskInfo []madmin.Disk) (capacity uint64) {
    	for _, d := range diskInfo {
    		capacity += d.AvailableSpace
    	}
    	return capacity
    }
    
    // GetTotalUsableCapacityFree gets the total usable capacity free in the cluster.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  7. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBenchmark.java

        queue = (BlockingQueue<String>) constructor.newInstance(capacity);
    
        strings = new String[capacity];
        for (int i = 0; i < capacity; i++) {
          strings[i] = String.valueOf(Math.random());
        }
      }
    
      @Benchmark
      void addsAndRemoves(int reps) {
        int capacity = this.capacity;
        BlockingQueue<String> queue = this.queue;
        String[] strings = this.strings;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

         *
         * @param <E> the element type of {@link ArrayBlockingQueue}
         * @param capacity the queue capacity
         * @return a new instance of {@link ArrayBlockingQueue}
         * @see ArrayBlockingQueue#ArrayBlockingQueue(int)
         */
        public static <E> ArrayBlockingQueue<E> newArrayBlockingQueue(final int capacity) {
            return new ArrayBlockingQueue<>(capacity);
        }
    
        /**
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 49.9K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/core/collection/CaseInsensitiveMap.java

         */
        public CaseInsensitiveMap() {
        }
    
        /**
         * Creates a {@link CaseInsensitiveMap}.
         *
         * @param capacity the initial capacity
         */
        public CaseInsensitiveMap(final int capacity) {
            super(capacity);
        }
    
        /**
         * Returns whether the key is contained.
         *
         * @param key the key
         * @return whether the key is contained
         */
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/Queues.java

       * @since 12.0
       */
      @J2ktIncompatible
      @GwtIncompatible // LinkedBlockingDeque
      public static <E> LinkedBlockingDeque<E> newLinkedBlockingDeque(int capacity) {
        return new LinkedBlockingDeque<>(capacity);
      }
    
      /**
       * Creates a {@code LinkedBlockingDeque} with a capacity of {@link Integer#MAX_VALUE}, containing
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Nov 04 17:24:58 GMT 2025
    - 18K bytes
    - Click Count (0)
Back to Top