Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 684 for zeroed (0.2 sec)

  1. src/test/java/jcifs/smb/BufferCacheImplTest.java

            // And it should still be zeroed
            for (byte value : reused) {
                assertEquals(0, value, "Reused buffer must be zeroed");
            }
        }
    
        // Edge: cache size 0 means nothing is cached; release still zeroes argument
        @Test
        @DisplayName("Cache size 0: release zeroes but does not cache; getBuffer allocates new")
        void zeroSizedCacheDoesNotStore() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/witness/WitnessUnregisterMessage.java

            // Context handle is modified by the server (typically zeroed out)
            if (contextHandle == null) {
                contextHandle = new byte[20];
            }
            buf.readOctetArray(contextHandle, 0, 20);
        }
    
        /**
         * Checks if the context handle has been invalidated (all zeros).
         * A successful unregistration typically results in a zeroed context handle.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

            assertEquals((byte) 0x53, aad[2]);
            assertEquals((byte) 0xFD, aad[3]);
    
            // Verify signature is zeroed out (16 bytes of zeros)
            for (int i = 4; i < 20; i++) {
                assertEquals(0, aad[i], "Signature bytes should be zero in AAD");
            }
    
            // Verify nonce matches at position 20
            for (int i = 0; i < 16; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            // When
            int bytesWritten = request.writeBytesWireFormat(buffer, 0);
    
            // Then
            assertTrue(bytesWritten > 0);
    
            // Verify negotiate context offset/count area is zeroed
            assertEquals(0, SMBUtil.readInt8(buffer, 28));
        }
    
        @Test
        @DisplayName("Should read empty bytes from wire format")
        void testReadBytesWireFormat() {
            // Given
    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. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

          if (!civilizedFileSystem && (currentEditor != null || zombie)) return null
    
          val sources = mutableListOf<Source>()
          val lengths = this.lengths.clone() // Defensive copy since these can be zeroed out.
          try {
            for (i in 0 until valueCount) {
              sources += newSource(i)
            }
            return Snapshot(key, sequenceNumber, sources, lengths)
          } catch (_: FileNotFoundException) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

            @Test
            @DisplayName("Should handle source key with all zeros")
            void testSourceKeyAllZeros() {
                // Given
                byte[] zeroKey = new byte[SOURCE_KEY_SIZE]; // All zeros by default
                SrvCopychunk chunk = new SrvCopychunk(1, 2, 3);
                SrvCopychunkCopy copy = new SrvCopychunkCopy(zeroKey, chunk);
                byte[] buffer = new byte[100];
    
                // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/persistent/DurableHandleResponse.java

        // The response structure is reserved and must be zero (8 bytes)
        private byte[] reserved = new byte[8];
    
        /**
         * Create a new durable handle response
         */
        public DurableHandleResponse() {
            // Reserved field initialized to zeros
        }
    
        @Override
        public byte[] getName() {
            return CONTEXT_NAME_BYTES;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            assertEquals(0, response.getCapabilities(), "Capabilities should be zero");
            assertArrayEquals(new byte[16], response.getServerGuid(), "Server GUID should be all zeros");
            assertEquals(0, response.getSecurityMode(), "Security mode should be zero");
            assertEquals(0, response.getDialect(), "Dialect should be zero");
        }
    
        @Test
        @DisplayName("Test decode with maximum values")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/net/InetAddresses.java

       * addresses, the output follows <a href="http://tools.ietf.org/html/rfc5952">RFC 5952</a> section
       * 4. The main difference is that this method uses "::" for zero compression, while Java's version
       * uses the uncompressed form (except on Android, where the zero compression is also done). The
       * other difference is that this method outputs any scope ID in the format that it was provided at
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

            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);
            assertEquals(zeroMid, messageBlock.getMid());
        }
    
        @Test
        @DisplayName("Test setCommand and getCommand methods")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
Back to top