- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for NdrBuffer (0.06 sec)
-
src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java
} /** * Verify that the encode method forwards the value to NdrBuffer. */ @Test @DisplayName("Encode should call NdrBuffer.enc_ndr_hyper with correct value") public void testEncodeInteraction() throws NdrException { NdrBuffer buf = mock(NdrBuffer.class); NdrHyper hyper = new NdrHyper(12345L); hyper.encode(buf);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.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/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/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) -
src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java
class NdrObjectTest { @Mock private NdrBuffer mockBuffer; private ConcreteNdrObject ndrObject; // A concrete implementation of NdrObject for testing purposes. private static class ConcreteNdrObject extends NdrObject { private boolean throwOnEncode = false; private boolean throwOnDecode = false; @Override public void encode(NdrBuffer dst) throws NdrException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/ndr/NdrSmall.java
*/ public NdrSmall(final int value) { this.value = value & 0xFF; } @Override public void encode(final NdrBuffer dst) throws NdrException { dst.enc_ndr_small(value); } @Override public void decode(final NdrBuffer src) throws NdrException { value = src.dec_ndr_small(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/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 - 6K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcBind.java
* License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.dcerpc; import jcifs.dcerpc.ndr.NdrBuffer; import jcifs.dcerpc.ndr.NdrException; /** * DCE/RPC bind request message implementation. * This class handles the binding process for establishing DCE/RPC communication channels. * * @author mbechler */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.6K bytes - Viewed (0)