- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 56 for NdrBuffer (0.04 sec)
- 
				
				src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.javam.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 majorRegistered: 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/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/dcerpc/ndr/NdrShortTest.javaNdrShort 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/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/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/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/msrpc/samr.javathis.handle = handle; } @Override public void encode_in(final NdrBuffer _dst) throws NdrException { this.handle.encode(_dst); } @Override public void decode_out(final NdrBuffer _src) throws NdrException { this.retval = _src.dec_ndr_long(); } } /**Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 23.4K bytes - Viewed (0)
- 
				
				src/main/java/jcifs/smb1/dcerpc/msrpc/samr.javathis.handle = handle; } @Override public void encode_in(final NdrBuffer _dst) throws NdrException { handle.encode(_dst); } @Override public void decode_out(final NdrBuffer _src) throws NdrException { retval = _src.dec_ndr_long(); } } /**Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 23.1K 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)