Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 240 for zeroed (0.06 sec)

  1. src/main/java/jcifs/internal/smb2/lease/Smb2LeaseKey.java

         */
        public void encode(byte[] dst, int dstIndex) {
            System.arraycopy(key, 0, dst, dstIndex, LEASE_KEY_SIZE);
        }
    
        /**
         * Check if this is a zero key (all bytes are zero)
         *
         * @return true if all bytes are zero
         */
        public boolean isZero() {
            for (byte b : key) {
                if (b != 0) {
                    return false;
                }
            }
            return true;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacUnicodeStringTest.java

        }
    
        /**
         * Tests the {@link PacUnicodeString#check(String)} method with a null string when the pointer is zero.
         * Note: Current implementation throws NullPointerException for null strings.
         */
        @Test
        void testCheck_withNullStringAndZeroPointer() {
            // A zero pointer indicates a null string
            PacUnicodeString pacString = new PacUnicodeString((short) 0, (short) 0, 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

            // Test with zero length buffer
            buffer.putShort(0, (short) 0);
            buffer.putShort(2, (short) 0);
            buffer.putInt(4, 8); // Offset doesn't matter for zero length
            result = NtlmMessage.readSecurityBuffer(data, 0);
            assertEquals(0, result.length, "Should return empty array for zero length buffer.");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

            }
    
            @Test
            @DisplayName("Should handle zero value correctly")
            void testConstructorZero() {
                // Given/When: Creating NdrShort with zero
                NdrShort ndrShort = new NdrShort(0);
    
                // Then: Value should be zero
                assertEquals(0, ndrShort.value);
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/dcerpc/UnicodeString.java

     * This class wraps strings for use in RPC calls with optional zero termination.
     */
    public class UnicodeString extends rpc.unicode_string {
    
        boolean zterm;
    
        /**
         * Constructs a UnicodeString with zero termination option.
         *
         * @param zterm whether the string should be zero terminated
         */
        public UnicodeString(final boolean zterm) {
            this.zterm = zterm;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/EncodableTest.java

                    Arguments.of(makeSeq(10), 2, 5, 3), // middle slice, non-zero dst index
                    Arguments.of(makeSeq(4), 4, 0, 0), // zero-length slice at end
                    Arguments.of(makeSeq(16), 7, 3, 0), // small slice from middle
                    Arguments.of(makeSeq(16), 0, 0, 5) // zero-length with non-zero dst index
            );
        }
    
        // Creates a deterministic byte sequence [0,1,2,...,n-1]
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/DefaultIntervalControllerTest.java

            assertEquals(333L, controller.getDelayMillisBeforeProcessing());
            assertEquals(444L, controller.getDelayMillisForWaitingNewUrl());
        }
    
        /**
         * Test delayAfterProcessing with zero delay
         */
        public void test_delayAfterProcessing_zeroDelay() {
            final DefaultIntervalController controller = new DefaultIntervalController();
            controller.setDelayMillisAfterProcessing(0L);
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:58:39 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/util/Hexdump.java

         * that the result is <code>size</code> digits.
         *
         * @param val the integer value to convert to hexadecimal
         * @param size the desired length of the resulting hex string (will be left-padded with zeros)
         * @return a hexadecimal string representation of the value, padded to the specified size
         */
        public static String toHexString(final int val, final int size) {
            final char[] c = new char[size];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

        }
    
        @Test
        @DisplayName("writeSecurityBuffer writes zero length buffer unchanged")
        void testWriteSecurityBufferZeroLength() {
            byte[] dest = new byte[10];
            byte[] before = dest.clone();
            NtlmMessage.writeSecurityBuffer(dest, 0, 4, null);
            assertArrayEquals(before, dest, "Zero length should leave dest unchanged");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top