- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 814 for Encoded (0.08 seconds)
-
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());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/BaseEncodingTest.java
assertThat(encoding.encode(decoded.getBytes(UTF_8), offset, len)).isEqualTo(encoded); } private static void testDecodes(BaseEncoding encoding, String encoded, String decoded) { assertThat(encoding.canDecode(encoded)).isTrue(); assertThat(encoding.decode(encoded)).isEqualTo(decoded.getBytes(UTF_8)); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 24.7K bytes - Click Count (0) -
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); } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 6.7K bytes - Click Count (0) -
src/test/java/org/codelibs/core/misc/Base64UtilTest.java
final byte[] decoded = Base64Util.decode(encoded); assertEquals("Decoded should have same length", 2, decoded.length); assertEquals("First byte should match", twoBytes[0], decoded[0]); assertEquals("Second byte should match", twoBytes[1], decoded[1]); } /** * Test backward compatibility with standard Base64 * * @throws Exception */
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/url/-Url.kt
* * * In queries, ' ' is encoded to '+' and '+' is encoded to "%2B". * * * Characters in `encodeSet` are percent-encoded. * * * Control characters and non-ASCII characters are percent-encoded. * * * All other characters are copied without transformation. * * @param alreadyEncoded true to leave '%' as-is; false to convert it to '%25'.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 7.3K bytes - Click Count (0) -
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 */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.5K bytes - Click Count (0) -
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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 30.9K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/av/AvPairsTest.java
byte[] encoded = AvPairs.encode(pairs); assertNotNull(encoded, "Encoded data should not be null"); assertEquals(4, encoded.length, "Should only have EOL (4 bytes)"); assertEquals(AvPair.MsvAvEOL, SMBUtil.readInt2(encoded, 0), "Should be EOL"); assertEquals(0, SMBUtil.readInt2(encoded, 2), "EOL length should be 0"); } /** * Test round-trip encoding and decodingCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.5K bytes - Click Count (0) -
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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.8K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/FormBody.kt
encodeSet = FORM_ENCODE_SET, // Plus is encoded as `%2B`, space is encoded as plus. plusIsSpace = false, charset = charset, ) values += value.canonicalizeWithCharset( encodeSet = FORM_ENCODE_SET, // Plus is encoded as `%2B`, space is encoded as plus. plusIsSpace = false, charset = charset,Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 4.3K bytes - Click Count (0)