Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 664 for encoder (0.03 sec)

  1. src/test/java/jcifs/netbios/NameTest.java

            // Should encode all 15 characters
            assertTrue(length >= 34);
            assertEquals(0x20, dst[0]);
        }
    
        @Test
        void readWireFormat_withTrailingSpaces_shouldTrimCorrectly() {
            // Prepare encoded data for "TEST    " (with trailing spaces)
            byte[] src = new byte[100];
            src[0] = 0x20;
    
            // Encode "TEST" correctly
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/util/FacetResponseTest.java

        }
    
        public void test_unicode_base64_encoding() {
            // Test that unicode strings are properly encoded/decoded
            String unicodeString = "日本語テスト";
            String encoded = BaseEncoding.base64().encode(unicodeString.getBytes(StandardCharsets.UTF_8));
            String decoded = new String(BaseEncoding.base64().decode(encoded), StandardCharsets.UTF_8);
    
            assertEquals(unicodeString, decoded);
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

                int encoded = context.encode(largeBuffer, 0);
                assertEquals(2 + 200, encoded); // 2 for count + 100*2 for ciphers
    
                EncryptionNegotiateContext decoded = new EncryptionNegotiateContext();
                try {
                    int decodedSize = decoded.decode(largeBuffer, 0, encoded);
                    assertEquals(encoded, decodedSize);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/spnego/NegTokenInitTest.java

            @DisplayName("Various flag combinations encode and parse correctly")
            void testFlagCombinations(int flags) throws Exception {
                NegTokenInit init = new NegTokenInit(new ASN1ObjectIdentifier[] { OID_KRB }, flags, null, null);
    
                byte[] encoded = init.toByteArray();
                NegTokenInit parsed = new NegTokenInit(encoded);
    
                assertEquals(flags, parsed.getContextFlags());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

            @Test
            @DisplayName("Should encode basic lock structure correctly")
            void testBasicEncoding() {
                long offset = 0x1234567890ABCDEFL;
                long length = 0xFEDCBA0987654321L;
                int flags = 0x12345678;
    
                lock = new Smb2Lock(offset, length, flags);
                int encoded = lock.encode(buffer, 0);
    
                assertEquals(24, encoded);
    
                // Verify offset (8 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/netdfsTest.java

            dstOut.enc_ndr_long(1); // Non-null pointer for totalentries
            totalentries.encode(dstOut); // Encode the totalentries
    
            dstOut.enc_ndr_long(0); // Simulate retval
    
            // Use the encoded data for decoding
            NdrBuffer srcOut = new NdrBuffer(encodeBufferOut, 0);
            decodedEnumEx.decode_out(srcOut);
    
            assertEquals(0, decodedEnumEx.retval);
            assertEquals(info.level, decodedEnumEx.info.level);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/ByteEncodableTest.java

            byte[] dest = new byte[5];
    
            int encodedLen = encodable.encode(dest, 0);
    
            // Verify encoded length
            assertEquals(3, encodedLen, "Encoded length should be equal to the specified length");
    
            // Verify content
            assertArrayEquals(new byte[] { 0x02, 0x03, 0x04, 0x00, 0x00 }, dest, "Encoded bytes should match the expected subset");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

                int encoded = originalContext.encode(buffer, 0);
                assertEquals(2 + (2 * maxCiphers), encoded);
    
                EncryptionNegotiateContext decodedContext = new EncryptionNegotiateContext();
                int decoded = decodedContext.decode(buffer, 0, encoded);
    
                assertEquals(encoded, decoded);
                assertArrayEquals(ciphers, decodedContext.getCiphers());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FileInformationTest.java

            // Encode
            byte[] buffer = new byte[8];
            int encoded = original.encode(buffer, 0);
            assertEquals(8, encoded);
    
            // Decode
            FileEndOfFileInformation decoded = new FileEndOfFileInformation();
            int decodedBytes = decoded.decode(buffer, 0, 8);
            assertEquals(8, decodedBytes);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/PermissionHelper.java

            // Default constructor
        }
    
        /**
         * Encodes a permission string into a search role format.
         * Processes user, group, and role prefixes along with allow/deny prefixes.
         *
         * @param value the permission string to encode
         * @return the encoded permission string, or null if the input is blank or invalid
         */
        public String encode(final String value) {
            if (StringUtil.isBlank(value)) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 15.3K bytes
    - Viewed (0)
Back to top