Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 952 for lengths (0.17 sec)

  1. src/main/java/jcifs/smb/MIEName.java

         */
        MIEName(final byte[] buf) {
            int i;
            int len;
            if (buf.length < TOK_ID_SIZE + MECH_OID_LEN_SIZE) {
                throw new IllegalArgumentException();
            }
            // TOK_ID
            for (i = 0; i < TOK_ID.length; i++) {
                if (TOK_ID[i] != buf[i]) {
                    throw new IllegalArgumentException();
                }
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java

            // Expected size: 2 (info level) + 4 (reserved) + filename length + 1 (null terminator)
            byte[] dst = new byte[2 + 4 + filename.length() + 1];
    
            // When
            int bytesWritten = trans.writeParametersWireFormat(dst, 0);
    
            // Then
            assertEquals(dst.length, bytesWritten, "The number of bytes written should match the expected length.");
            // Check informationLevel
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/Dfs.java

                while (iter.hasNext()) {
                    final String _key = (String) iter.next();
                    final int _klen = _key.length();
                    boolean match = false;
    
                    if (_klen == key.length()) {
                        match = _key.equals(key);
                    } else if (_klen < key.length()) {
                        match = _key.regionMatches(0, key, 0, _klen) && key.charAt(_klen) == '\\';
                    }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/ntlmssp/Type1Message.java

                final byte[] type1 = new byte[hostInfo ? 32 + domain.length + workstation.length : 16];
                System.arraycopy(NTLMSSP_SIGNATURE, 0, type1, 0, 8);
                writeULong(type1, 8, 1);
                writeULong(type1, 12, flags);
                if (hostInfo) {
                    writeSecurityBuffer(type1, 16, 32, domain);
                    writeSecurityBuffer(type1, 24, 32 + domain.length, workstation);
                }
                return type1;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/http/NetworkExplorer.java

                url = file.getLocator().getPath();
                resp.setContentType("text/plain");
                resp.setContentType(URLConnection.guessContentTypeFromName(url));
                resp.setHeader("Content-Length", file.length() + "");
                resp.setHeader("Accept-Ranges", "Bytes");
    
                while ((n = in.read(buf)) != -1) {
                    out.write(buf, 0, n);
                }
            }
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/util/StringUtilTest.java

            // First: "" (sb becomes "")
            // Second: sb.length() is 0, no delimiter, append null (sb becomes "null")
            // Third: sb.length() > 0, add "-" + "value" (sb becomes "null-value")
            // Fourth: sb.length() > 0, add "-" + "" (sb becomes "null-value-")
            // Fifth: sb.length() > 0, add "-" + null (sb becomes "null-value--null")
            assertEquals("null-value--null", result);
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java

            /**
             * Get the notification message length
             *
             * @return message length in bytes
             */
            public int getLength() {
                return length;
            }
    
            /**
             * Sets the notification message length.
             *
             * @param length the message length in bytes
             */
            public void setLength(int length) {
                this.length = length;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/pac/ASN1Util.java

            int length = s.read();
            if (0 == length >>> 7) {
                // definite-length short form
                return length;
            }
            if (0x80 == length) {
                // indefinite-length
                return -1;
            }
            if (length < 0) {
                throw new EOFException("EOF found when length expected");
            }
            if (0xFF == length) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  9. 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)
  10. src/main/java/jcifs/internal/dfs/DfsReferralRequestBuffer.java

            return 4 + 2 * this.path.length();
        }
    
        @Override
        public int encode(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt2(this.maxReferralLevel, dst, dstIndex);
            dstIndex += 2;
            final byte[] pathBytes = this.path.getBytes(StandardCharsets.UTF_16LE);
            System.arraycopy(pathBytes, 0, dst, dstIndex, pathBytes.length);
            dstIndex += pathBytes.length;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
Back to top