- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 455 for encode (0.04 sec)
-
src/main/java/jcifs/util/Encdec.java
private static final int TIME_1970_MILLIS_64LE = 8; /** * */ private Encdec() { } /* * Encode integers */ /** * Encodes a 16-bit unsigned integer in big-endian byte order. * * @param s the short value to encode * @param dst the destination byte array * @param di the starting index in the destination array
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/Encdec.java
return src[si] & 0xFF | (src[si + 1] & 0xFF) << 8 | (src[si + 2] & 0xFF) << 16 | (src[si + 3] & 0xFF) << 24; } /* Encode and decode 64 bit integers */ /** * Encodes a 64-bit unsigned integer in big-endian byte order. * * @param l the long value to encode * @param dst the destination byte array * @param di the starting index in the destination array
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.5K bytes - Viewed (0) -
src/test/java/jcifs/util/EncdecTest.java
import jcifs.BaseTest; /** * Test class for Encdec utility functionality */ @DisplayName("Encdec Utility Tests") class EncdecTest extends BaseTest { @Test @DisplayName("Should encode and decode 16-bit integers") void testInt16Operations() { // Given short value = 0x1234; byte[] buffer = new byte[2]; // When - encode little endian Encdec.enc_uint16le(value, buffer, 0);
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/NegotiateContextRequestTest.java
context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt); int encoded = context.encode(buffer, 0); assertEquals(4 + (count * 2) + 16, encoded); assertEquals(context.size(), encoded); } @Test @DisplayName("Should encode and decode correctly") void testEncodeAndDecode() throws SMBProtocolDecodingException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/netdfsTest.java
info.encode(dstOut); // Encode the info structure // Simulate totalentries pointer (non-null) 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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java
// Encode multiple times byte[] buffer1 = new byte[100]; byte[] buffer2 = new byte[100]; byte[] buffer3 = new byte[100]; int encoded1 = request.encode(buffer1, 0); int encoded2 = request.encode(buffer2, 0); int encoded3 = request.encode(buffer3, 0); // All should produce same result assertEquals(encoded1, encoded2);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInformationTest.java
when(mockFileInfo.encode(dst, 0)).thenReturn(8); when(mockFileInfo.size()).thenReturn(8); // Test encode int encoded = mockFileInfo.encode(dst, 0); assertEquals(8, encoded); // Test size int size = mockFileInfo.size(); assertEquals(8, size); // Verify interactions verify(mockFileInfo).encode(dst, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java
byte[] dst = new byte[buffer.size()]; buffer.encode(dst, 0); ByteBuffer bb = ByteBuffer.wrap(dst).order(ByteOrder.LITTLE_ENDIAN); assertEquals((short) maxReferralLevel, bb.getShort()); } @Test @DisplayName("Should encode Unicode path correctly") void testEncodeUnicodePath() { String path = "\\\\サーバー\\共有\\パス";
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java
/** * Unit tests for {@link NdrHyper}. * <p> * The class only contains an encode/decode pair that delegates to * {@link NdrBuffer#enc_ndr_hyper(long)} and {@link NdrBuffer#dec_ndr_hyper()}. * The tests verify that: * <ul> * <li>encoding and decoding round‑trip correctly handle typical, zero, * and extreme {@code long} values.</li> * <li>encode/decode methods interact correctly with a mocked
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0)