Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 776 for zeros (0.07 sec)

  1. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

        }
    
        @Test
        @DisplayName("Should write zeros for reserved field")
        void testReservedFieldIsZero() {
            // Given
            Configuration mockConfig = mock(Configuration.class);
            Smb2TreeDisconnectRequest request = new Smb2TreeDisconnectRequest(mockConfig);
            byte[] buffer = new byte[256];
            // Fill with non-zero values first
            for (int i = 0; i < buffer.length; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

            response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION);
    
            byte[] buffer = new byte[100];
            // Initialize buffer with zeros to avoid random data
            java.util.Arrays.fill(buffer, (byte) 0);
    
            // Set dataCount to 0 - but decode still runs
            setDataCount(response, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  3. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        assertThat(Adapters.INTEGER_AS_LONG.fromDer(bytes)).isEqualTo(-549755813887L)
        assertThat(Adapters.INTEGER_AS_LONG.toDer(-549755813887L)).isEqualTo(bytes)
      }
    
      @Test fun `eight zeros`() {
        val bytes = "020200ff".decodeHex()
        assertThat(Adapters.INTEGER_AS_LONG.fromDer(bytes)).isEqualTo(255)
        assertThat(Adapters.INTEGER_AS_LONG.toDer(255)).isEqualTo(bytes)
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/hash/LittleEndianByteArray.java

      static long load64Safely(byte[] input, int offset, int length) {
        long result = 0;
        // Due to the way we shift, we can stop iterating once we've run out of data, the rest
        // of the result already being filled with zeros.
    
        // This loop is critical to performance, so please check HashBenchmark if altering it.
        int limit = min(length, 8);
        for (int i = 0; i < limit; i++) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

            }
    
            RequestWithFileId request = new Smb2CloseRequest(mockConfig, emptyFileId);
    
            // All patterns should be accepted
            assertDoesNotThrow(() -> request.setFileId(allZeros), "Should handle all-zeros file ID");
            assertDoesNotThrow(() -> request.setFileId(allOnes), "Should handle all-ones file ID");
            assertDoesNotThrow(() -> request.setFileId(alternating), "Should handle alternating pattern file ID");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  6. src/archive/tar/strconv.go

    	}
    	return int64(x)
    }
    
    func (f *formatter) formatOctal(b []byte, x int64) {
    	if !fitsInOctal(len(b), x) {
    		x = 0 // Last resort, just write zero
    		f.err = ErrFieldTooLong
    	}
    
    	s := strconv.FormatInt(x, 8)
    	// Add leading zeros, but leave room for a NUL.
    	if n := len(b) - len(s) - 1; n > 0 {
    		s = strings.Repeat("0", n) + s
    	}
    	f.formatString(b, s)
    }
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Sep 08 17:08:20 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/PreauthIntegrityService.java

                this.salt = salt != null ? salt.clone() : new byte[0];
                this.hashAlgorithm = hashAlgorithm;
                this.currentHash = new byte[HASH_SIZE_SHA512]; // Initialize with zeros
                this.isValid = true;
            }
    
            public byte[] getSalt() {
                return salt.clone();
            }
    
            public int getHashAlgorithm() {
                return hashAlgorithm;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

            }
    
            @Test
            @DisplayName("Should read file ID correctly with various patterns")
            void testReadFileIdPatterns() throws Exception {
                // Test with all zeros
                byte[] zeroFileId = new byte[16];
                testFileIdReading(zeroFileId);
    
                // Test with all ones
                byte[] onesFileId = new byte[16];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            request = new Smb2NegotiateRequest(mockConfig, 0);
    
            // Then
            byte[] guid = request.getClientGuid();
            assertNotNull(guid);
            assertEquals(16, guid.length);
            // Should be zeros (not set from machine ID)
            for (byte b : guid) {
                assertEquals(0, b);
            }
        }
    
        @Test
        @DisplayName("Should add negotiate contexts for SMB 3.1.1")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/SecureKeyManagerTest.java

            new SecureRandom().nextBytes(data);
    
            // Verify data is not all zeros initially
            boolean hasNonZero = false;
            for (byte b : data) {
                if (b != 0) {
                    hasNonZero = true;
                    break;
                }
            }
            assertTrue(hasNonZero, "Data should have non-zero bytes");
    
            SecureKeyManager.secureWipe(data);
    
            // Verify data is wiped
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
Back to top