Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 715 for encodeId (0.68 sec)

  1. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

            FileRenameInformation2 info = new FileRenameInformation2(unicodeFileName, false);
    
            byte[] buffer = new byte[200];
            int bytesWritten = info.encode(buffer, 0);
    
            // Verify the encoded data
            int nameLength = SMBUtil.readInt4(buffer, 16);
            byte[] nameBytes = new byte[nameLength];
            System.arraycopy(buffer, 20, nameBytes, 0, nameLength);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            // Now test encode
            byte[] destinationBuffer = new byte[30]; // Extra space
            int dstIndex = 3; // Start at offset 3
            int bytesEncoded = fileStandardInfo.encode(destinationBuffer, dstIndex);
    
            // Verify
            assertEquals(22, bytesEncoded);
    
            // Verify encoded data
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

            assertEquals(fid & 0xFFFF, actualFid);
        }
    
        @Test
        @DisplayName("Test writeDataWireFormat")
        void testWriteDataWireFormat() {
            // Setup mock to return encoded size
            when(mockFileInfo.encode(any(byte[].class), anyInt())).thenReturn(40);
    
            trans2SetFileInfo = new Trans2SetFileInformation(config, TEST_FID, mockFileInfo);
    
            byte[] buffer = new byte[512];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java

            // Note: No IPv4 preference bonus to keep base score equal to link speed
    
            return score;
        }
    
        /**
         * Encode this interface info for FSCTL_QUERY_NETWORK_INTERFACE_INFO response
         *
         * @return encoded bytes
         */
        public byte[] encode() {
            // NETWORK_INTERFACE_INFO structure per MS-SMB2 2.2.32.5.1
            // Total size: 152 bytes
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java

        /**
         * When lastWriteTime is zero the encoded unsigned time must be all 1s.
         */
        @Test
        @DisplayName("edge: writeParameterWordsWireFormat with lastWriteTime=0")
        void testWriteParameterWordsZeroUTime() {
            SmbComClose close = new SmbComClose(42, 0L);
            byte[] buffer = new byte[6];
            close.writeParameterWordsWireFormat(buffer, 0);
            // first two bytes encode fid 42
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/lsarpcIntegrationTest.java

            domainInfo.sid.sub_authority_count = 2;
            domainInfo.sid.sub_authority = new int[] { 21, 12345 };
    
            // Encode to buffer
            byte[] buffer = new byte[1024];
            NdrBuffer encodeBuffer = new NdrBuffer(buffer, 0);
            domainInfo.encode(encodeBuffer);
    
            // Decode from buffer
            NdrBuffer decodeBuffer = new NdrBuffer(buffer, 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/rpcTest.java

                // But only test the non-deferred parts to avoid field mocking issues
    
                // When: Trying to encode (may throw exception due to deferred buffer)
                // Then: Should at least call the basic encoding methods before hitting deferred
                assertThrows(Exception.class, () -> {
                    unicodeString.encode(mockNdrBuffer);
                }, "Should encounter issue with deferred buffer access");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/net/URLUtil.java

         * @return The string encoded in <code>application/x-www-form-urlencoded</code> format.
         */
        public static String encode(final String s, final String enc) {
            assertArgumentNotEmpty("s", s);
            assertArgumentNotEmpty("enc", enc);
    
            try {
                return URLEncoder.encode(s, enc);
            } catch (final UnsupportedEncodingException e) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

            // Test encoding/decoding
            byte[] encoded = nic.encode();
            assertNotNull(encoded);
            assertEquals(Smb2ChannelCapabilities.NETWORK_INTERFACE_INFO_SIZE, encoded.length);
    
            NetworkInterfaceInfo decoded = NetworkInterfaceInfo.decode(encoded, 0);
            assertEquals(nic.getInterfaceIndex(), decoded.getInterfaceIndex());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/NtlmNtHashAuthenticator.java

         * Create username/password credentials with specified domain
         *
         * @param domain the authentication domain
         * @param username the username
         * @param passwordHashHex
         *            NT password hash, hex encoded
         */
        public NtlmNtHashAuthenticator(final String domain, final String username, final String passwordHashHex) {
            this(domain, username, Hex.decode(passwordHashHex));
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 2.6K bytes
    - Viewed (0)
Back to top