- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 253 for decodeId (0.78 sec)
-
src/test/java/jcifs/dcerpc/msrpc/samrTest.java
// Setup for SamrSamEntry decode chain mockDeferredBuffer.deferred = mockDeferredBuffer; when(mockDeferredBuffer.dec_ndr_short()).thenReturn(0, 0, 0); // When: Decoding output message.decode_out(mockNdrBuffer); // Then: Should decode all output parameters verify(samArray).decode(mockNdrBuffer);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java
assertEquals(0x1111, response.getSecurityMode(), "First decode security mode"); assertEquals(0x0210, response.getDialect(), "First decode dialect"); // Second decode - should overwrite values byte[] buffer2 = new byte[50]; SMBUtil.writeInt4(0x22222222, buffer2, 0); SMBUtil.writeInt2(0x2222, buffer2, 20); SMBUtil.writeInt2(0x0311, buffer2, 22);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java
SMBUtil.writeInt4(messageLength, buffer, bufferIndex + 12); System.arraycopy(testData, 0, buffer, bufferIndex + 16, testData.length); // Decode int bytesDecoded = response.decode(buffer, bufferIndex, buffer.length); // Verify results assertEquals(namedPipeState, response.getNamedPipeState()); assertEquals(readDataAvailable, response.getReadDataAvailable());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
// When: Decoding the value ndrShort.decode(mockBuffer); // Then: Should set the negative value directly (no masking on decode) verify(mockBuffer).dec_ndr_short(); assertEquals(negativeValue, ndrShort.value); } @Test @DisplayName("Should decode large value correctly") void testDecodeLargeValue() throws NdrException {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java
assertEquals(0, buffer.getNumReferrals()); assertEquals(0, buffer.getTflags()); } } @Nested @DisplayName("Decode Tests") class DecodeTests { @Test @DisplayName("Should decode buffer with no referrals") void testDecodeNoReferrals() { // Prepare test data: pathConsumed=0, numReferrals=0, tflags=0
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java
// Decode smbInfoAllocation.decode(buffer, 0, buffer.length); // Verify - with sectPerAlloc = 1, capacity = alloc * bytesPerSect assertEquals(alloc * bytesPerSect, smbInfoAllocation.getCapacity()); assertEquals(free * bytesPerSect, smbInfoAllocation.getFree()); } @Test @DisplayName("Test decode with large bytes per sector")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java
} /** * Test case for the decode method. * Verifies that the decode method of a concrete implementation is called * and interacts with the NdrBuffer as expected. * @throws NdrException if decoding fails. */ @Test void testDecode() throws NdrException { // When ndrObject.decode(mockBuffer); // ThenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.4K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/netdfs.java
this.info = new DfsEnumStruct(); } this.info.decode(_src); } final int _totalentriesp = _src.dec_ndr_long(); if (_totalentriesp != 0) { this.totalentries.decode(_src); } this.retval = _src.dec_ndr_long(); } }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 21.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java
assertEquals(FileSystemInformation.FS_SIZE_INFO, fileFsSizeInfo.getFileSystemInformationClass()); } } @Nested @DisplayName("Decode Method Tests") class DecodeMethodTests { @Test @DisplayName("Should decode buffer with typical values correctly") void shouldDecodeBufferWithTypicalValues() throws SMBProtocolDecodingException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.9K bytes - Viewed (0) -
src/main/java/jcifs/pac/kerberos/KerberosApRequest.java
/** * Creates a Kerberos AP request from a token. * * @param token the Kerberos AP-REQ token * @param keys the Kerberos keys for decryption * @throws PACDecodingException if the token cannot be decoded */ public KerberosApRequest(byte[] token, KerberosKey[] keys) throws PACDecodingException { this(parseSequence(token), keys); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.9K bytes - Viewed (0)