- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 527 for Encoded (0.04 sec)
-
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) -
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) -
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 */
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 6K bytes - Viewed (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 */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInformationTest.java
byte[] buffer = new byte[8]; int encoded = fileInfo.encode(buffer, 0); assertEquals(8, encoded); // Test decoding FileEndOfFileInformation decoded = new FileEndOfFileInformation(); int decodedBytes = decoded.decode(buffer, 0, 8); assertEquals(8, decodedBytes); // Verify toString contains the value assertTrue(decoded.toString().contains(String.valueOf(endOfFile)));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (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 decodingRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
cmd/erasure-coding.go
ok = false continue } // Delete first shard and reconstruct... first := encoded[0] encoded[0] = nil failOnErr(e.DecodeDataBlocks(encoded)) if a, b := first, encoded[0]; !bytes.Equal(a, b) { fmt.Fprintf(os.Stderr, "%v: error on self-test [d:%d,p:%d]: want %#v, got %#v\n", algo, conf[0], conf[1], hex.EncodeToString(a), hex.EncodeToString(b))
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 8.5K bytes - Viewed (0) -
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) -
src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java
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) -
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)); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.7K bytes - Viewed (0)