Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/main/java/jcifs/NetbiosAddress.java

         */
        boolean isPermanent(CIFSContext tc) throws UnknownHostException;
    
        /**
         * Retrieves the MAC address of the remote network interface. Samba returns all zeros.
         *
         * @param tc
         *            context to use
         *
         * @return the MAC address as an array of six bytes
         * @throws UnknownHostException
         *             if the host cannot be resolved to
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  6. 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)
  7. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

                assertEquals(length, SMBUtil.readInt4(buffer, startIndex + 16));
    
                // Verify reserved bytes are zeros
                for (int i = 0; i < RESERVED_BYTES; i++) {
                    assertEquals(0, buffer[startIndex + 20 + i]);
                }
            }
    
            @Test
            @DisplayName("Should encode zero values correctly")
            void testEncodeZeroValues() {
                // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/util/SMBUtilTest.java

                assertEquals((byte) 0xFF, dst[i]);
            }
    
            // Test with zero
            SMBUtil.writeInt8(0L, dst, 16);
            for (int i = 16; i < 24; i++) {
                assertEquals((byte) 0x00, dst[i]);
            }
        }
    
        @Test
        void testReadTime() {
            byte[] src = new byte[16];
    
            // Test with zero time
            SMBUtil.writeInt8(0L, src, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  9. 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)
  10. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java

            resp.decode(packet, 0);
    
            SrvPipePeekResponse peek = resp.getOutputData(SrvPipePeekResponse.class);
            assertNotNull(peek);
            assertEquals(16, resp.getOutputLength());
            // Default zeros
            assertEquals(0, peek.getNamedPipeState());
            assertEquals(0, peek.getReadDataAvailable());
            assertEquals(0, peek.getNumberOfMessages());
            assertEquals(0, peek.getMessageLength());
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top