- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 401 for Structured (0.12 sec)
-
src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java
*/ public void processChangeNotification(ChangeNotificationHandle handle, byte[] outputBuffer) { if (outputBuffer == null || outputBuffer.length == 0) { return; } int offset = 0; while (offset < outputBuffer.length) { // Parse FILE_NOTIFY_INFORMATION structureRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
assertEquals(0, bytesWritten); } @Test @DisplayName("Should read valid structure from wire format") void testReadBytesWireFormatValidStructure() throws SMBProtocolDecodingException { // Given byte[] buffer = new byte[256]; int offset = 10; // Write structure size (4) at offset SMBUtil.writeInt2(4, buffer, offset);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java
assertEquals("Expected structureSize = 2", exception.getMessage()); } @Test @DisplayName("Test readBytesWireFormat with zero structure size throws exception") void testReadBytesWireFormatZeroStructureSize() { byte[] buffer = new byte[1024]; int bufferIndex = 0; // Set structure size to 0 (invalid)Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
docs/smb3-features/03-multi-channel-design.md
// Maximum channels per session public static final int DEFAULT_MAX_CHANNELS = 4; public static final int ABSOLUTE_MAX_CHANNELS = 32; } ``` ## 4. Data Structures ### 4.1 Network Interface Information ```java package jcifs.internal.smb2.multichannel; import java.net.InetAddress; import java.net.NetworkInterface; import java.util.ArrayList; import java.util.List;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 39.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java
@DisplayName("Test readBytesWireFormat with valid structure size") void testReadBytesWireFormatValidStructureSize() throws Exception { response = new Smb2QueryInfoResponse(mockConfig, Smb2Constants.SMB2_0_INFO_FILE, FileInformation.FILE_INTERNAL_INFO); byte[] buffer = new byte[1024]; int bufferIndex = 100; // Start at non-zero index // Set structure size to 9 (valid)Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
@Test @DisplayName("Test readBytesWireFormat with valid structure size") void testReadBytesWireFormatValidStructureSize() throws Exception { response = new Smb2QueryDirectoryResponse(mockConfig, Smb2QueryDirectoryRequest.FILE_BOTH_DIRECTORY_INFO); byte[] buffer = new byte[512]; int bufferIndex = 0; // Set structure size to 9 (valid) SMBUtil.writeInt2(9, buffer, bufferIndex);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/samrTest.java
import jcifs.dcerpc.rpc; import jcifs.dcerpc.ndr.NdrBuffer; import jcifs.dcerpc.ndr.NdrException; /** * Comprehensive test suite for samr (Security Account Manager Remote) protocol * Tests all message types, data structures, and constants */ @ExtendWith(MockitoExtension.class) @DisplayName("SAMR Protocol Test Suite") class samrTest { @Mock private NdrBuffer mockNdrBuffer; @Mock
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java
assertEquals(16, bytesRead); // Structure size + reserved (4) + count (4) + remaining (4) + channel info (4) assertEquals(1024, response.getCount()); assertEquals(512, response.getRemaining()); } @Test @DisplayName("Should throw exception for invalid structure size") void testInvalidStructureSize() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
class ReadBytesWireFormatTests { @Test @DisplayName("Should read valid structure size of 4") void testReadBytesWireFormatValid() throws SMBProtocolDecodingException { byte[] buffer = new byte[1024]; int bufferIndex = 100; // Write structure size = 4 SMBUtil.writeInt2(4, buffer, bufferIndex);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java
int read = resp.readBytesWireFormat(buffer, start); // Assert assertEquals(4, read, "Should return the fixed structure size (4)"); } @ParameterizedTest @ValueSource(ints = { 0, 1, 7 }) @DisplayName("Throws when structure size is not 4") void throws_whenStructureSizeIsNotFour(int size) { // Arrange byte[] buffer = new byte[2];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.7K bytes - Viewed (0)