- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 944 for differ (0.03 sec)
-
src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java
} @Override public int decode(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException { return decode(buffer, bufferIndex, false); } /** * Decodes the SMB2 message from the buffer. * * @param buffer the buffer containing the message * @param bufferIndex the starting position in the buffer * @param compound whether this is part of a compound chain
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java
offset += 8; SMBUtil.writeInt4(expectedNumberOfLinks, buffer, offset); offset += 4; buffer[offset++] = (byte) (expectedDeletePending ? 1 : 0); buffer[offset++] = (byte) (expectedDirectory ? 1 : 0); // Decode and verify fileStandardInfo.decode(buffer, 0, buffer.length); assertEquals(expectedEndOfFile, fileStandardInfo.getSize()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java
// The validation in getBuffer() ensures size is within bounds (0 < size <= 1MB) assertTrue(buffer.length > 0, "Buffer size should be positive"); assertTrue(buffer.length <= 0x100000, "Buffer size should not exceed 1MB"); } /** * Test that releaseBuffer validates buffer before accepting it. */ @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
// Given byte[] buffer = new byte[256]; SMBUtil.writeInt2(16, buffer, 0); buffer[2] = (byte) 0xFF; // Max share type buffer[3] = 0; SMBUtil.writeInt4(0xFFFFFFFF, buffer, 4); // Max share flags SMBUtil.writeInt4(0xFFFFFFFF, buffer, 8); // Max capabilities SMBUtil.writeInt4(0xFFFFFFFF, buffer, 12); // Max access // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
// Skip 7 reserved bytes (1-7) // Skip 8 bytes for RootDirectory (8-15) SMBUtil.writeInt4(nameBytes.length, buffer, 16); System.arraycopy(nameBytes, 0, buffer, 20, nameBytes.length); FileRenameInformation2 info = new FileRenameInformation2(); int bytesRead = info.decode(buffer, 0, buffer.length); assertEquals(20 + nameBytes.length, bytesRead);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java
setPrivateField(cmd, "maxReferralLevel", 0x12AB); byte[] buffer = new byte[100]; int len = cmd.writeParametersWireFormat(buffer, 0); assertTrue(len >= 2); // writeInt2 writes in little-endian format (LSB first) assertEquals(0xAB, buffer[0] & 0xFF); assertEquals(0x12, buffer[1] & 0xFF); // Check that the path is written after the referral level
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
assertEquals(32, SMBUtil.readInt2(buffer, offset)); // Verify notify flags assertEquals(Smb2ChangeNotifyRequest.SMB2_WATCH_TREE, SMBUtil.readInt2(buffer, offset + 2)); // Verify output buffer length assertEquals(8192, SMBUtil.readInt4(buffer, offset + 4)); // Verify file ID byte[] readFileId = new byte[16]; System.arraycopy(buffer, offset + 8, readFileId, 0, 16);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java
byte[] buffer = new byte[100]; int offset = 20; // Prepare data at offset int dataOffset = offset; SMBUtil.writeInt4(0, buffer, dataOffset); dataOffset += 4; SMBUtil.writeInt4(8, buffer, dataOffset); dataOffset += 4; SMBUtil.writeInt4(1000000, buffer, dataOffset); dataOffset += 4; SMBUtil.writeInt4(500000, buffer, dataOffset);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacConstants.java
/** * Buffer type for server checksum signature. */ int SERVER_CHECKSUM = 6; /** * Buffer type for privilege server (KDC) checksum signature. */ int PRIVSVR_CHECKSUM = 7; /** * Buffer type for client name information. */ int CLIENT_NAME_TYPE = 0xA; /** * Buffer type for constrained delegation information. */ int CONSTRAINT_DELEGATIION_TYPE = 0xB;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/lsarpcIntegrationTest.java
domainInfo.name = new rpc.unicode_string(); domainInfo.name.buffer = null; domainInfo.sid = null; // Encode to buffer byte[] buffer = new byte[1024]; NdrBuffer encodeBuffer = new NdrBuffer(buffer, 0); domainInfo.encode(encodeBuffer); // Decode from buffer NdrBuffer decodeBuffer = new NdrBuffer(buffer, 0); lsarpc.LsarDomainInfo decodedInfo = new lsarpc.LsarDomainInfo();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0)