Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 254 for decode (0.04 sec)

  1. cmd/erasure-decode.go

    	}
    
    	// If we cannot decode, just return read quorum error.
    	return nil, fmt.Errorf("%w (offline-disks=%d/%d)", errErasureReadQuorum, disksNotFound, len(p.readers))
    }
    
    // Decode reads from readers, reconstructs data if needed and writes the data to the writer.
    // A set of preferred drives can be supplied. In that case they will be used and the data reconstructed.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/util/FacetResponseTest.java

            // 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);
        }
    
        public void test_special_characters_base64_encoding() {
    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/session/Smb2SessionSetupResponseTest.java

            int decoded = resp.decode(buf, headerStart);
            assertTrue(decoded > 0, "Decode should return positive length");
    
            assertEquals(NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED, resp.getStatus());
            assertArrayEquals(blob, resp.getBlob(), "Security blob should match");
            assertEquals(sessionFlags, resp.getSessionFlags(), "Session flags should decode");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SecurityDescriptor.java

         * @param len the length of data to decode
         * @throws IOException if an I/O error occurs during decoding
         */
        public SecurityDescriptor(final byte[] buffer, final int bufferIndex, final int len) throws IOException {
            this.decode(buffer, bufferIndex, len);
        }
    
        /**
         * Decodes a security descriptor from a byte buffer.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

            NdrHyper decoded = new NdrHyper(0);
            decoded.decode(buf);
            assertEquals(val, decoded.value, "Decoded value should match encoded value for " + Long.toHexString(val));
        }
    
        /**
         * Ensure encode throws NPE when passed a null buffer.
         */
        @Test
        @DisplayName("Encode with null buffer throws NullPointerException")
        public void testEncodeNullBuffer() throws NdrException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/dtyp/SecurityDescriptor.java

        }
    
        /**
         * Decodes a security descriptor from a byte buffer.
         *
         * @param buffer the byte buffer containing the security descriptor data
         * @param bufferIndex the starting offset in the buffer
         * @param len the length of data to decode
         * @return the number of bytes decoded
         * @throws SMBProtocolDecodingException if the data cannot be properly decoded
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/conn/IdnDnsResolver.java

        }
    
        /**
         * Decodes the given host string using the specified encoding.
         *
         * @param host the host string to decode
         * @return the decoded host string
         */
        protected String decode(final String host) {
            if (host.indexOf('%') == -1) {
                return host;
            }
            try {
                return URLDecoder.decode(host, encoding);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

        }
    
        @Test
        @DisplayName("Test decode with minimum valid length")
        void testDecodeMinimumValidLength() throws SMBProtocolDecodingException {
            // Prepare minimum valid buffer - exactly 24 bytes
            byte[] buffer = new byte[28];
            Arrays.fill(buffer, 0, 24, (byte) 0xAA);
    
            // Decode with len = 24 (minimum valid)
            int bytesConsumed = response.decode(buffer, 0, 24);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/Decodable.java

    /**
     * Interface for objects that can be decoded from a byte buffer.
     * This interface provides methods for deserializing data from SMB protocol messages.
     *
     * @author mbechler
     */
    public interface Decodable {
    
        /**
         * Decode data from a byte buffer
         *
         * @param buffer the byte buffer containing the data to decode
         * @param bufferIndex the starting index in the buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/EncdecTest.java

            Encdec.enc_uint64le(currentDate.getTime(), buffer, 0);
            long decoded = Encdec.dec_uint64le(buffer, 0);
    
            // Then
            assertEquals(currentDate.getTime(), decoded, "Encoded and decoded time should match");
        }
    
        @Test
        @DisplayName("Should encode and decode UUIDs")
        void testUUIDOperations() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
Back to top