- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 253 for decodeId (2.11 sec)
-
src/test/java/jcifs/dcerpc/DcerpcBindTest.java
@Test @DisplayName("Decode error handling should work correctly") void testDecodeErrorHandling() throws Exception { // Given when(mockHandle.getMaxXmit()).thenReturn(1024); when(mockHandle.getMaxRecv()).thenReturn(1024); DcerpcBind bindMessage = new DcerpcBind(mockBinding, mockHandle); // When - Decode with error responseRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcMessageTest.java
.thenReturn(0); // cancel count message.decode(mockBuffer); assertEquals(DcerpcConstants.RPC_PT_RESPONSE, message.ptype); assertEquals(100, message.alloc_hint); } @Test @DisplayName("decode should handle FAULT ptype correctly") void testDecodeFaultPtype() throws NdrException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.3K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/DurableHandleReconnectResponse.java
} @Override public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException { // Reconnect response has no data - length should be 0 if (len != 0) { throw new SMBProtocolDecodingException("Invalid durable handle reconnect response length: " + len); } // No data to decode return 0; } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; /** * JUnit 5 tests for AndXServerMessageBlock in legacy smb1 package. * * The tests use small stub subclasses to drive encode/decode paths and * validate batching, chaining, signing, and NT_CREATE_ANDX extended handling. */ class AndXServerMessageBlockTest { /** * Test stub for AndXServerMessageBlock to control read/write logic. */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/FileFsFullSizeInformation.java
public long getFree() { return this.free * this.sectPerAlloc * this.bytesPerSect; } /** * {@inheritDoc} * * @see jcifs.Decodable#decode(byte[], int, int) */ @Override public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException { final int start = bufferIndex; // Read total allocation units.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImpl.java
* @param len the length of data to decode * @throws IOException if an I/O error occurs during decoding */ public FileNotifyInformationImpl(final byte[] buffer, final int bufferIndex, final int len) throws IOException { decode(buffer, bufferIndex, len); } @Override public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponse.java
bufferIndex += i.decode(buffer, bufferIndex, len); this.notifyInformation.add(i); while (i.getNextEntryOffset() > 0) { bufferIndex = elemStart + i.getNextEntryOffset(); elemStart = bufferIndex; i = new FileNotifyInformationImpl(); bufferIndex += i.decode(buffer, bufferIndex, len); this.notifyInformation.add(i);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java
0xA5A5A5A5, fileId); byte[] packet = buildPacket(header, body, null, null); int read = resp.decode(packet, 0, false); assertTrue(read >= SMB2_HEADER_LENGTH + body.length, "Should decode at least header+body"); // Validate simple getters assertEquals((byte) 0x7, resp.getOplockLevel()); assertEquals((byte) 0x2, resp.getOpenFlags());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/rpc.java
_dst = _dst.derive(_nodei); for (int _i = 0; _i < _nodes; _i++) { _dst.enc_ndr_small(node[_i]); } } @Override public void decode(NdrBuffer _src) throws NdrException { _src.align(4); time_low = _src.dec_ndr_long(); time_mid = (short) _src.dec_ndr_short(); time_hi_and_version = (short) _src.dec_ndr_short();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.2K bytes - Viewed (0)