Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 230 for decoded (0.04 sec)

  1. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

            buf.reset();
            NdrHyper decoded = new NdrHyper(0);
            decoded.decode(buf);
            assertEquals(original, decoded.value, "Decoded value should match encoded value");
        }
    
        /**
         * Parameterised test for a selection of edge and typical values.
         */
        @ParameterizedTest(name = "Encode and decode {0}")
        @ValueSource(longs = { 0L, 1L, -1L, Long.MAX_VALUE, Long.MIN_VALUE })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponse.java

        protected Decodable createInputDecodable() {
            return null;
        }
    
        /**
         * Gets the output data decoded as the specified response type.
         *
         * @param <T> the type of the decoded response data
         * @param responseType the class of the expected response type
         * @return decoded data
         * @throws SmbException if decoding fails or the response type is incompatible
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/Strings.java

            }
            return len;
        }
    
        /**
         * Decodes a string from OEM-encoded bytes.
         *
         * @param src the byte array containing the encoded string
         * @param srcIndex the starting offset in the byte array
         * @param len the number of bytes to decode
         * @param config the configuration providing the OEM encoding
         * @return decoded string
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  6. 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)
  7. cmd/erasure_test.go

    		} else {
    			err = erasure.DecodeDataBlocks(encoded)
    		}
    
    		if err == nil && test.shouldFail {
    			t.Errorf("Test %d: test should fail but it passed", i)
    		}
    		if err != nil && !test.shouldFail {
    			t.Errorf("Test %d: test should pass but it failed: %v", i, err)
    		}
    
    		decoded := encoded
    		if !test.shouldFail {
    			if test.reconstructParity {
    				for j := range decoded {
    					if decoded[j] == nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfoTest.java

            byte[] encoded = original.encode();
            assertEquals(Smb2ChannelCapabilities.NETWORK_INTERFACE_INFO_SIZE, encoded.length);
    
            NetworkInterfaceInfo decoded = NetworkInterfaceInfo.decode(encoded, 0);
            assertNotNull(decoded);
            assertEquals(original.getAddress(), decoded.getAddress());
            assertEquals(original.getLinkSpeed(), decoded.getLinkSpeed());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/util/FacetResponse.java

            }
    
            /**
             * Gets the decoded name of this field facet.
             *
             * @return the field name
             */
            public String getName() {
                return name;
            }
    
        }
    
        /**
         * Gets the map of query facet counts.
         *
         * @return the queryCountMap containing decoded query strings and their counts
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java

            // create a new empty range and decode
            LockingAndXRange decoded = new LockingAndXRange(false);
            int decodedSize = decoded.decode(dst, 0, dst.length);
            assertEquals(10, decodedSize, "Decode should return size 10");
            assertEquals(99, decoded.getPid());
            assertEquals(123456L, decoded.getByteOffset());
            assertEquals(654321L, decoded.getLengthInBytes());
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
Back to top