Search Options

Results per page
Sort
Preferred Languages
Advance

Results 571 - 580 of 954 for zero (0.02 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

            int informationLevel = SMBUtil.readInt2(buffer, 4);
            assertEquals(Trans2FindFirst2.SMB_FILE_BOTH_DIRECTORY_INFO, informationLevel);
        }
    
        @Test
        void testZeroValues() {
            // Test with zero values for numeric parameters
            trans2FindNext2 = new Trans2FindNext2(config, 0, 0, "", 0, 0);
    
            assertNotNull(trans2FindNext2);
    
            byte[] buffer = new byte[256];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacLogonInfoTest.java

            });
        }
    
        @Test
        @DisplayName("Test PacUnicodeString check method with valid pointer")
        void testPacUnicodeStringCheckWithValidPointer() throws Exception {
            // When pointer is non-zero, validate string length
            String testString = "TEST";
            short length = (short) (testString.length() * 2); // Unicode length
            PacUnicodeString unicodeString = new PacUnicodeString(length, length, 100);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Stopwatch.java

        checkState(isRunning, "This stopwatch is already stopped.");
        isRunning = false;
        elapsedNanos += tick - startTick;
        return this;
      }
    
      /**
       * Sets the elapsed time for this stopwatch to zero, and places it in a stopped state.
       *
       * @return this {@code Stopwatch} instance
       */
      @CanIgnoreReturnValue
      public Stopwatch reset() {
        elapsedNanos = 0;
        isRunning = false;
        return this;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 08 18:55:33 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/AbstractCache.java

        private final LongAddable totalLoadTime = LongAddables.create();
        private final LongAddable evictionCount = LongAddables.create();
    
        /** Constructs an instance with all counts initialized to zero. */
        public SimpleStatsCounter() {}
    
        /**
         * @since 11.0
         */
        @Override
        public void recordHits(int count) {
          hitCount.add(count);
        }
    
        /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v1.go

    	}
    
    	return fi, nil
    }
    
    // Signature will return a signature that is expected to be the same across all disks.
    func (m *xlMetaV1Object) Signature() [4]byte {
    	// Shallow copy
    	c := *m
    	// Zero unimportant fields
    	c.Erasure.Index = 0
    	c.Minio.Release = ""
    	crc := hashDeterministicString(c.Meta)
    	c.Meta = nil
    
    	if bts, err := c.MarshalMsg(metaDataPoolGet()); err == nil {
    		crc ^= xxhash.Sum64(bts)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/BaseEncoding.java

          // We're looking for the smallest charsPerChunk such that bitsPerChar * charsPerChunk is a
          // multiple of 8. A multiple of 8 has 3 low zero bits, so we just need to figure out how many
          // extra zero bits we need to add to the end of bitsPerChar to get 3 in total.
          // The logic here would be wrong for bitsPerChar > 8, but since we require distinct ASCII
          // characters that can't happen.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Oct 06 14:51:47 UTC 2025
    - 41.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            // When
            request = new Smb2NegotiateRequest(mockConfig, 0);
    
            // Then
            assertArrayEquals(testMachineId, request.getClientGuid());
        }
    
        @Test
        @DisplayName("Should use zero GUID for SMB2.0.2")
        void testClientGuidSmb202() {
            // Given
            when(mockConfig.getMaximumVersion()).thenReturn(DialectVersion.SMB202);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

            when(messageBlock.getMid()).thenReturn(minMid);
    
            messageBlock.setMid(minMid);
            assertEquals(minMid, messageBlock.getMid());
    
            // Test with zero
            long zeroMid = 0L;
            doNothing().when(messageBlock).setMid(zeroMid);
            when(messageBlock.getMid()).thenReturn(zeroMid);
    
            messageBlock.setMid(zeroMid);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java

            assertEquals(0, response.readDataWireFormat(largeBuffer, 0, 65536));
        }
    
        @Test
        @DisplayName("Test boundary conditions for read methods with zero length")
        void testReadMethodsWithZeroLength() {
            // Arrange
            byte[] buffer = new byte[100];
    
            // Act & Assert
            assertEquals(0, response.readSetupWireFormat(buffer, 0, 0));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            char[] decrypted = storage.decryptCredentials(encrypted);
            assertNotNull(decrypted, "Decrypted empty data should not be null");
            assertEquals(0, decrypted.length, "Decrypted empty array should have zero length");
        }
    
        @Test
        public void testEncryptDecryptNull() throws Exception {
            byte[] encrypted = storage.encryptCredentials(null);
            assertNull(encrypted, "Encrypting null should return null");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top