Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 360 for offsets (0.04 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java

                        int offset = threadIndex * 10;
                        smbComTreeDisconnect.writeParameterWordsWireFormat(buffer, offset);
                        smbComTreeDisconnect.writeBytesWireFormat(buffer, offset);
                        smbComTreeDisconnect.readParameterWordsWireFormat(buffer, offset);
                        smbComTreeDisconnect.readBytesWireFormat(buffer, offset);
                        smbComTreeDisconnect.toString();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/SMBSigningDigestTest.java

                largeData[i] = (byte) i;
            }
    
            // Test with different offsets
            int[] offsets = { 0, 10, 50, 90 };
    
            for (int offset : offsets) {
                // Act
                signingDigest.sign(largeData, offset, 10, request, response);
    
                // Assert
                verify(signingDigest).sign(largeData, offset, 10, request, response);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            }
        }
    
        @Test
        @DisplayName("Should write bytes at different buffer offsets")
        void testWriteBytesAtDifferentOffsets() throws Exception {
            // Test at different offsets
            int[] offsets = { 0, 10, 50, 100, 200 };
    
            for (int offset : offsets) {
                // Given
                byte[] buffer = new byte[1024];
                Smb2SessionSetupRequest req =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            });
        }
    
        @Test
        @DisplayName("Should write consistent structure at different offsets")
        void testWriteBytesAtDifferentOffsets() throws Exception {
            // Test at different offsets
            int[] offsets = { 0, 10, 50, 100, 200 };
    
            for (int offset : offsets) {
                // Given
                byte[] buffer = new byte[1024];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java

            // Verify
            assertEquals(14 + nameBytes.length, bytesEncoded);
    
            // Check timeout value at offset
            assertEquals(timeout, SMBUtil.readInt8(buffer, offset));
    
            // Check name length at offset
            assertEquals(nameBytes.length, SMBUtil.readInt4(buffer, offset + 8));
    
            // Check timeout specified flag at offset
            assertEquals(0x1, buffer[offset + 12]);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java

        @ParameterizedTest
        @ValueSource(ints = { 0, 10, 50, 100, 200 })
        void testReadBytesWireFormatAtDifferentOffsets(int offset) throws SMBProtocolDecodingException {
            // Given
            byte[] buffer = new byte[256];
    
            // Write valid structure at offset
            SMBUtil.writeInt2(4, buffer, offset);
            SMBUtil.writeInt2(0, buffer, offset + 2);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            // Test reading data from different buffer offsets
            byte[] testData = "Test data with offset".getBytes();
            byte[] buffer = new byte[200];
            int offset = 50;
            System.arraycopy(testData, 0, buffer, offset, testData.length);
    
            int result = response.readDataWireFormat(buffer, offset, testData.length);
    
            assertEquals(testData.length, result);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java

            // No group (offset 0)
            for (int i = 8; i < 12; i++)
                securityDescriptorBytes[i] = 0;
            // No SACL (offset 0)
            for (int i = 12; i < 16; i++)
                securityDescriptorBytes[i] = 0;
            // DACL at offset 20
            securityDescriptorBytes[16] = 20;
            securityDescriptorBytes[17] = 0;
            securityDescriptorBytes[18] = 0;
            securityDescriptorBytes[19] = 0;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbComNtTransactionTest.java

            }
        }
    
        @BeforeEach
        void setUp() {
            smbComNtTransaction = new ConcreteSmbComNtTransaction();
        }
    
        @Test
        void testConstructor() {
            // Test if the offsets are initialized correctly by the constructor.
            assertEquals(69, smbComNtTransaction.primarySetupOffset, "primarySetupOffset should be initialized to 69");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

                assertEquals(descrBytes[i], dst[offset + i]);
            }
            offset += descrBytes.length;
    
            // 3. Level (2 bytes)
            assertEquals(0x0001, SMBUtil.readInt2(dst, offset));
            offset += 2;
    
            // 4. MaxDataCount (2 bytes)
            int maxDataCount = SMBUtil.readInt2(dst, offset);
            assertTrue(maxDataCount > 0);
            offset += 2;
    
            // Verify total bytes written
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top