Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 920 for lengths (0.42 sec)

  1. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

            testBlock.setDigest(mockDigest);
            byte[] buffer = new byte[1024];
    
            int length = testBlock.encode(buffer, 0);
    
            assertTrue(length > 0);
            verify(mockDigest).sign(eq(buffer), eq(0), eq(length), eq(testBlock), any());
        }
    
        @Test
        @DisplayName("Test decode basic message")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

            if (args == null) {
                return paramTypes.length == 0;
            }
            if (paramTypes.length != args.length) {
                return false;
            }
            for (int i = 0; i < args.length; ++i) {
                if (args[i] == null) {
                    continue;
                }
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 25.8K bytes
    - Viewed (1)
  3. src/main/java/jcifs/smb1/smb1/SigningDigest.java

         *
         * @param data The data.
         * @param offset The starting offset at which the SMB header begins.
         * @param length The length of the SMB data starting at offset.
         */
        void sign(final byte[] data, final int offset, final int length, final ServerMessageBlock request, final ServerMessageBlock response) {
            request.signSeq = signSequence;
            if (response != null) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

            // Test with buffer and length larger than needed
            byte[] buffer = new byte[100];
    
            // Fill test pattern
            for (int i = 0; i < buffer.length; i++) {
                buffer[i] = (byte) (i % 256);
            }
    
            int bytesConsumed = response.decode(buffer, 0, 50);
    
            assertEquals(28, bytesConsumed, "Should consume exactly 28 bytes regardless of extra length");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            // Nonces should have proper size
            assertEquals(16, nonce1.length, "GCM nonce should be 16 bytes");
            assertEquals(16, nonce2.length, "GCM nonce should be 16 bytes");
            assertEquals(16, nonce3.length, "GCM nonce should be 16 bytes");
    
            // For GCM, last 4 bytes should contain incrementing counter
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/MIENameTest.java

                    // OID length claims more than available
                    Arguments.of("oid length exceeds buffer", new byte[] { 0x04, 0x01, 0x00, 0x10, 0x06 }, IllegalArgumentException.class),
    
                    // Missing NAME_LEN (not enough bytes for 4-byte length)
                    Arguments.of("missing NAME_LEN bytes", new byte[] { 0x04, 0x01, 0x00, (byte) der.length, der[0] },
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java

            // Test text that exceeds maximum length after encoding
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < 500; i++) {
                sb.append("0123456789");
            }
            String longText = sb.toString();
            String id = SuggestUtil.createSuggestTextId(longText);
            assertNotNull(id);
            assertEquals(445, id.length()); // Should be truncated to ID_MAX_LENGTH
        }
    
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/BufferCacheImpl.java

            // better safe than sorry: prevent leaks if there is some out of bound access
            Arrays.fill(buf, (byte) 0);
            synchronized (this.cache) {
                if (this.freeBuffers < this.cache.length) {
                    for (int i = 0; i < this.cache.length; i++) {
                        if (this.cache[i] == null) {
                            this.cache[i] = buf;
                            this.freeBuffers++;
                            return;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponse.java

            return ("TransCallNamedPipeResponse[" + super.toString() + "]");
        }
    
        /**
         * Gets the length of the response data received from the named pipe.
         *
         * @return response data length
         */
        public int getResponseLength() {
            return getDataCount();
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java

                System.arraycopy(commentBytes, 0, buffer, commentOffset, commentBytes.length);
                buffer[commentOffset + commentBytes.length] = 0;
                commentOffset += commentBytes.length + 1;
            }
    
            // Read the data
            int bytesRead = response.readDataWireFormat(buffer, 0, buffer.length);
    
            // Verify results
            assertTrue(bytesRead > 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.4K bytes
    - Viewed (0)
Back to top