- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 299 for Unicode (0.74 sec)
-
src/main/java/jcifs/smb1/dcerpc/msrpc/netdfs.java
@Override public void encode(NdrBuffer _dst) throws NdrException { _dst.align(4); _dst.enc_ndr_long(level); final int _descr = level; _dst.enc_ndr_long(_descr); _dst.enc_ndr_referent(e, 1); if (e != null) { _dst = _dst.deferred; e.encode(_dst); } }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java
m.encode(buf); assertTrue(m.alloc_hint > 0); } @Test void testEncodeWritesCorrectHeader() throws Exception { TestMessage m = new TestMessage(); m.ptype = 0; m.flags = 0x05; m.call_id = 0x123; NdrBuffer buf = new NdrBuffer(new byte[1024], 0); m.encode(buf); // Reset to read what was writtenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/srvsvc.java
*/ public ShareInfo0() { } /** * The network name of the share. */ public String netname; @Override public void encode(NdrBuffer _dst) throws NdrException { _dst.align(4); _dst.enc_ndr_referent(this.netname, 1); if (this.netname != null) { _dst = _dst.deferred;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 27K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
} @Test @DisplayName("encode() method should be callable") void testEncodeMethod() { CreateContextRequest request = mock(CreateContextRequest.class); byte[] buffer = new byte[100]; when(request.encode(any(byte[].class), anyInt())).thenReturn(16); int result = request.encode(buffer, 0); assertEquals(16, result);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java
class EncodingTests { @Test @DisplayName("Should encode single cipher correctly") void testEncodeSingleCipher() { int[] ciphers = { EncryptionNegotiateContext.CIPHER_AES128_CCM }; EncryptionNegotiateContext context = new EncryptionNegotiateContext(mockConfig, ciphers); int bytesWritten = context.encode(buffer, 0); assertEquals(4, bytesWritten);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/main/java/jcifs/smb1/dcerpc/msrpc/lsarpc.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 42.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
srvsvc.ShareInfo0 shareInfo0 = new srvsvc.ShareInfo0(); shareInfo0.netname = null; shareInfo0.encode(mockNdrBuffer); // Verify the encode operations verify(mockNdrBuffer).align(4); verify(mockNdrBuffer).enc_ndr_referent(null, 1); // Should not encode string if netname is null verify(mockDeferredBuffer, never()).enc_ndr_string(anyString()); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java
} /** * Ensure encode throws NPE when passed a null buffer. */ @Test @DisplayName("Encode with null buffer throws NullPointerException") public void testEncodeNullBuffer() throws NdrException { NdrHyper hyper = new NdrHyper(5L); assertThrows(NullPointerException.class, () -> hyper.encode(null)); } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/Encdec.java
* Time encoding type: 1970 epoch, 64-bit milliseconds, little-endian. */ public static final int TIME_1970_MILLIS_64LE = 8; /* 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 arrayRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java
// Decode to set state fileStandardInfo.decode(sourceBuffer, 0, sourceBuffer.length); // Now test encode byte[] destinationBuffer = new byte[30]; // Extra space int dstIndex = 3; // Start at offset 3 int bytesEncoded = fileStandardInfo.encode(destinationBuffer, dstIndex); // Verify assertEquals(22, bytesEncoded); // Verify encoded dataRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0)