Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 166 for encodes (0.48 sec)

  1. src/main/java/jcifs/util/Encdec.java

        private static final int TIME_1970_MILLIS_64LE = 8;
    
        /**
         *
         */
        private Encdec() {
        }
    
        /*
         * Encode integers
         */
    
        /**
         * Encodes a 16-bit unsigned integer in big-endian byte order.
         *
         * @param s the short value to encode
         * @param dst the destination byte array
         * @param di the starting index in the destination array
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/util/Encdec.java

         * Time encoding type: 1970 epoch, 64-bit milliseconds, little-endian.
         */
        public static final int TIME_1970_MILLIS_64LE = 8;
    
        /* Encode integers
         */
    
        /**
         * Encodes a 16-bit unsigned integer in big-endian byte order.
         *
         * @param s the short value to encode
         * @param dst the destination byte array
         * @param di the starting index in the destination array
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

        /* double */
        /**
         * Encodes a string in NDR format.
         *
         * @param s the string to encode
         */
        public void enc_ndr_string(final String s) {
            align(4);
            int i = index;
            final int len = s.length();
            Encdec.enc_uint32le(len + 1, buf, i);
            i += 4;
            Encdec.enc_uint32le(0, buf, i);
            i += 4;
            Encdec.enc_uint32le(len + 1, buf, i);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

            return val;
        }
    
        /**
         * Encodes a short integer (2 bytes) in NDR format.
         *
         * @param s the short integer value to encode
         */
        public void enc_ndr_short(final int s) {
            align(2);
            Encdec.enc_uint16le((short) s, this.buf, this.index);
            advance(2);
        }
    
        /**
         * Decodes a short integer (2 bytes) from NDR format.
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/xml/DomUtil.java

            } catch (final UnsupportedEncodingException ex) {
                throw new IORuntimeException(ex);
            }
        }
    
        /**
         * Encodes the value of an attribute.
         *
         * @param s
         *            The attribute value.
         * @return The encoded attribute value.
         */
        public static String encodeAttrQuot(final String s) {
            if (s == null) {
                return null;
            }
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/storage/S3StorageClient.java

        }
    
        /**
         * Encodes an object name to a URL-safe base64 string.
         *
         * @param objectName the object name to encode
         * @return base64 encoded string
         */
        private String encodeId(final String objectName) {
            if (objectName == null) {
                return StringUtil.EMPTY;
            }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

                    request.setAttribute(key, query);
                }
                return query;
            }).orElse(null);
        }
    
        /**
         * Encodes a string to URL-safe Base64 format.
         *
         * @param value the string to encode
         * @return Base64 encoded string, or empty string if value is null
         */
        public static String base64(final String value) {
            if (value == null) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 25.4K bytes
    - Viewed (1)
  8. src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java

            // Encode multiple times
            byte[] buffer1 = new byte[100];
            byte[] buffer2 = new byte[100];
            byte[] buffer3 = new byte[100];
    
            int encoded1 = request.encode(buffer1, 0);
            int encoded2 = request.encode(buffer2, 0);
            int encoded3 = request.encode(buffer3, 0);
    
            // All should produce same result
            assertEquals(encoded1, encoded2);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

            @Test
            @DisplayName("Should handle rapid successive encodes")
            void testRapidSuccessiveEncodes() {
                String path = "\\\\server\\share\\folder\\file.dat";
                buffer = new DfsReferralRequestBuffer(path, 3);
    
                byte[] dst = new byte[buffer.size()];
    
                // Perform many rapid encodes
                for (int i = 0; i < 10000; i++) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java

            assertEquals(0, queryList.size());
        }
    
        // Additional tests for createSuggestTextId boundary cases
        @Test
        public void testCreateSuggestTextIdBoundaryExactly445() {
            // Create text that encodes to exactly 445 characters
            // Base64 encoding increases size by ~4/3, so original size should be ~333 bytes
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < 333; i++) {
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 26.7K bytes
    - Viewed (0)
Back to top