- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 664 for encoder (0.03 sec)
-
src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java
assertEquals(newFlags, leaseContext.getLeaseFlags()); } @Test @DisplayName("Should encode context correctly") void testEncode() { byte[] buffer = new byte[leaseContext.size()]; int encoded = leaseContext.encode(buffer, 0); assertEquals(leaseContext.size(), encoded); // Verify context header structure according to MS-SMB2
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/TestSmbComTransactionResponseReader.java
byte[] encoded = encodeUnicode(msg); assertEquals(4, encoded.length, "Encoded Unicode string should be 4 bytes"); // Verify little-endian encoding assertEquals((byte) 0xA1, encoded[0], "First byte of first character"); assertEquals((byte) 0x00, encoded[1], "Second byte of first character"); assertEquals((byte) 0xA2, encoded[2], "First byte of second character");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockTest.java
// When int encoded = messageBlock.encode(buffer, encodeIndex); int decoded = messageBlock.decode(buffer, decodeIndex); // Then assertEquals(encodeLength, encoded); assertEquals(decodeLength, decoded); verify(messageBlock).encode(buffer, encodeIndex); verify(messageBlock).decode(buffer, decodeIndex); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt
// We've successfully read a byte. address[b++] = value.toByte() } // Check for too few groups. We wanted exactly four. return b == addressOffset + 4 } /** Encodes an IPv6 address in canonical form according to RFC 5952. */ internal fun inet6AddressToAscii(address: ByteArray): String { // Go through the address looking for the longest run of 0s. Each group is 2-bytes.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 11.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt
* query the fragment is not sent to the webserver: it's private to the client. * * ## Encoding * * Each component must be encoded before it is embedded in the complete URL. As we saw above, the * string `cute #puppies` is encoded as `cute%20%23puppies` when used as a query parameter value. * * ### Percent encoding *
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 63.5K bytes - Viewed (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)); } private static void testDecodesByBytes(BaseEncoding encoding, String encoded, byte[] decoded) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.7K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java
logger.warn("Malformed URL: " + attrValue, e); } } /** * Encodes a URL using the specified character encoding. * * @param url the URL to encode * @param enc the character encoding to use * @return the encoded URL */ protected String encodeUrl(final String url, final String enc) { if (StringUtil.isBlank(url) || StringUtil.isBlank(enc)) {
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 28.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
} /** * Verify that encode writes the correct little-endian sequence * to the buffer and that alignment is respected. */ @Test void encodeWritesCorrectBytesAndAlignment() throws NdrException { NdrShort ns = new NdrShort(0xABCD); // value & 0xFF => 0xCD buf.reset(); int startIndex = buf.getIndex(); ns.encode(buf);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
byte[] largeBuffer = new byte[1000]; // Act int smallEncodedSize = context.encode(smallBuffer, 0); int largeEncodedSize = context.encode(largeBuffer, 500); // Assert // encode() returns actual bytes written (6), not size() value (8) assertEquals(6, smallEncodedSize); // actual: 2 bytes count + 2*2 bytes for ciphers
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.4K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
assertFailsWith<ProtocolException> { derReader.read("test") {} }.also { expected -> assertThat(expected.message) .isEqualTo("length encoded with more than 8 bytes is not supported") } } @Test fun `encode tag and length`() { val buffer = Buffer() val derWriter = DerWriter(buffer) derWriter.write("test", tagClass = DerHeader.TAG_CLASS_UNIVERSAL, tag = 30L) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 31.7K bytes - Viewed (0)