- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 56 for NdrBuffer (0.26 sec)
-
src/main/java/jcifs/dcerpc/msrpc/netdfs.java
@Override public void encode(NdrBuffer _dst) throws NdrException { _dst.align(4); _dst.enc_ndr_referent(this.entry_path, 1); if (this.entry_path != null) { _dst = _dst.deferred; _dst.enc_ndr_string(this.entry_path); } } @Override public void decode(NdrBuffer _src) throws NdrException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 21.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/srvsvc.java
@Override public void encode(NdrBuffer _dst) throws NdrException { _dst.align(4); _dst.enc_ndr_referent(netname, 1); if (netname != null) { _dst = _dst.deferred; _dst.enc_ndr_string(netname); } } @Override public void decode(NdrBuffer _src) throws NdrException { _src.align(4);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 26.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java
m.flags = 0x05; m.alloc_hint = 0; NdrBuffer buf = new NdrBuffer(new byte[1024], 0); m.encode(buf); // decode back buf.setIndex(0); m.decode_header(buf); assertEquals(0, m.ptype); } @Test void testDecodeHeaderInvalidVersion() { NdrBuffer buf = new NdrBuffer(new byte[10], 0); buf.enc_ndr_small(4); // bad major
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcSecurityProvider.java
*/ void wrap(NdrBuffer outgoing) throws DcerpcException; /** * Unwraps incoming DCERPC message data after security processing * @param incoming the buffer containing data to be unwrapped * @throws DcerpcException if the unwrapping operation fails */ void unwrap(NdrBuffer incoming) throws DcerpcException;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
NdrShort ndrShort1 = new NdrShort(originalValue); // Create separate mocks for encoding and decoding to simulate real buffer NdrBuffer encodeBuffer = mock(NdrBuffer.class); NdrBuffer decodeBuffer = mock(NdrBuffer.class); when(decodeBuffer.dec_ndr_short()).thenReturn(originalValue); // When: Encoding then decoding ndrShort1.encode(encodeBuffer);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.2K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/lsarpc.java
@Override public void encode(final NdrBuffer _dst) throws NdrException { _dst.align(4); _dst.enc_ndr_long(this.length); _dst.enc_ndr_short(this.impersonation_level); _dst.enc_ndr_small(this.context_mode); _dst.enc_ndr_small(this.effective_only); } @Override public void decode(final NdrBuffer _src) throws NdrException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 44.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java
NdrHyper ndrHyper = new NdrHyper(0); // Initialize with a dummy value // Configure the mock NdrBuffer to return a specific value when dec_ndr_hyper is called when(mockNdrBuffer.dec_ndr_hyper()).thenReturn(decodedValue); // Call the decode method with the mocked NdrBuffer ndrHyper.decode(mockNdrBuffer); // Verify that dec_ndr_hyper was called exactly once
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/netdfs.java
@Override public void encode(NdrBuffer _dst) throws NdrException { _dst.align(4); _dst.enc_ndr_referent(entry_path, 1); if (entry_path != null) { _dst = _dst.deferred; _dst.enc_ndr_string(entry_path); } } @Override public void decode(NdrBuffer _src) throws NdrException { _src.align(4);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
} /** * Verify that encode invokes NdrBuffer.enc_ndr_short via a mocked * (spied) buffer. */ @Test void encodeWithSpiedBufferCallsEncMethod() throws NdrException { NdrShort ns = new NdrShort(42); NdrBuffer spy = spy(new NdrBuffer(new byte[10], 0)); ns.encode(spy);
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/main/java/jcifs/dcerpc/DcerpcMessage.java
* @throws NdrException if encoding fails */ public abstract void encode_in(NdrBuffer buf) throws NdrException; /** * Decode the output parameters from this DCERPC message. * @param buf the buffer to decode from * @throws NdrException if decoding fails */ public abstract void decode_out(NdrBuffer buf) throws NdrException;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.3K bytes - Viewed (0)