Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 715 for encodeTo (1.34 sec)

  1. internal/bucket/lifecycle/delmarker-expiration.go

    		return err
    	}
    
    	if dexp.Days <= 0 {
    		return errInvalidDaysDelMarkerExpiration
    	}
    
    	*de = DelMarkerExpiration(dexp)
    	return nil
    }
    
    // MarshalXML encodes a DelMarkerExpiration value into an XML element
    func (de DelMarkerExpiration) MarshalXML(enc *xml.Encoder, start xml.StartElement) error {
    	if de.Empty() {
    		return nil
    	}
    
    	type delMarkerExpiration DelMarkerExpiration
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. 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)
  3. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  4. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/misc/Base64UtilTest.java

        }
    
        /**
         * Test encode with single byte
         *
         * @throws Exception
         */
        public void testEncode_SingleByte() throws Exception {
            final byte[] singleByte = new byte[] { 'A' };
            final String encoded = Base64Util.encode(singleByte);
            assertNotNull("Encoded result should not be null", encoded);
            final byte[] decoded = Base64Util.decode(encoded);
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 6K bytes
    - Viewed (0)
  6. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

                byte[] largeBuffer = new byte[4096];
                int encoded = originalContext.encode(largeBuffer, 0);
                assertEquals(4 + (2 * maxAlgos) + salt.length, encoded);
    
                PreauthIntegrityNegotiateContext decodedContext = new PreauthIntegrityNegotiateContext();
                int decoded = decodedContext.decode(largeBuffer, 0, encoded);
    
                assertEquals(encoded, decoded);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  8. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  9. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  10. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
Back to top