Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 516 for 2048 (0.02 sec)

  1. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

                buffer[13] = 0x08; // free = 2048
                buffer[16] = 0x00;
                buffer[17] = 0x02; // bytesPerSect = 512
    
                int bytesDecoded = smbInfoAllocation.decode(buffer, 0, buffer.length);
    
                assertEquals(20, bytesDecoded);
                assertEquals(8L * 4096L * 512L, smbInfoAllocation.getCapacity());
                assertEquals(8L * 2048L * 512L, smbInfoAllocation.getFree());
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java

            // This test is theoretical as we can't create huge buffers
            // but tests the boundary conditions
            if (aceCount <= 10) { // Only test small counts practically
                byte[] buffer = new byte[2048];
                prepareSecurityDescriptorBufferWithDACL(buffer, 0, aceCount);
    
                SecurityDescriptor sd = new SecurityDescriptor();
                sd.decode(buffer, 0, buffer.length);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/audit/SecurityAuditLogger.java

            } else {
                sb.setLength(0); // Reset length
            }
            return sb;
        }
    
        private void returnStringBuilder(StringBuilder sb) {
            if (sb != null && sb.capacity() < 2048) { // Avoid keeping very large builders
                stringBuilderPool.offer(sb);
            }
        }
    
        private Map<String, Object> getContextMap() {
            HashMap<String, Object> map = mapPool.poll();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java

                buffer.putLong(2000L);
                buffer.putInt(4);
                buffer.putInt(2048);
    
                // When
                allocInfo.decode(buffer.array(), 0, 24);
    
                // Then
                assertEquals(5000L * 4 * 2048, allocInfo.getCapacity());
                assertEquals(2000L * 4 * 2048, allocInfo.getFree());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

            String longPath = "very\\long\\path\\to\\some\\deeply\\nested\\file\\in\\directory\\structure.txt";
            request = new Smb2CreateRequest(mockConfig, longPath);
    
            byte[] buffer = new byte[2048];
            int bytesWritten = request.writeBytesWireFormat(buffer, 0);
    
            assertTrue(bytesWritten > 0);
    
            // Verify name length field at offset 46 (after 44 bytes of fixed fields + 2 for name offset)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

        void testReadBytesWireFormatLargeBufferOffset() throws Exception {
            response = new Smb2QueryInfoResponse(mockConfig, Smb2Constants.SMB2_0_INFO_FILE, FileInformation.FILE_INTERNAL_INFO);
    
            byte[] buffer = new byte[2048];
            int bufferIndex = 100;
    
            // Set structure size to 9
            SMBUtil.writeInt2(9, buffer, bufferIndex);
            // Set large buffer offset
            SMBUtil.writeInt2(1000, buffer, bufferIndex + 2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                buffer.putLong(2100L);
                buffer.putInt(4);
                buffer.putInt(2048);
    
                // When
                allocInfo.decode(buffer.array(), 0, 32);
    
                // Then
                assertEquals(5000L * 4 * 2048, allocInfo.getCapacity());
                assertEquals(2000L * 4 * 2048, allocInfo.getFree());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/samrTest.java

                assertEquals(128, samr.ACB_WSTRUST);
                assertEquals(256, samr.ACB_SVRTRUST);
                assertEquals(512, samr.ACB_PWNOEXP);
                assertEquals(1024, samr.ACB_AUTOLOCK);
                assertEquals(2048, samr.ACB_ENC_TXT_PWD_ALLOWED);
                assertEquals(4096, samr.ACB_SMARTCARD_REQUIRED);
                assertEquals(8192, samr.ACB_TRUSTED_FOR_DELEGATION);
                assertEquals(16384, samr.ACB_NOT_DELEGATED);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

        }
    
        @Test
        @DisplayName("Should handle notification with long filename")
        void testLongFilename() throws Exception {
            // Given
            byte[] buffer = new byte[2048];
            int offset = 0;
    
            setHeaderStart(response, 64);
    
            // Create a long filename
            StringBuilder longName = new StringBuilder();
            for (int i = 0; i < 100; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

        }
    
        @Test
        @DisplayName("Should maintain immutability of structure size")
        void testStructureSizeImmutability() throws Exception {
            // Given
            byte[] buffer = new byte[2048];
    
            // When - encode at multiple positions
            for (int i = 0; i < 5; i++) {
                Smb2TreeConnectRequest req = new Smb2TreeConnectRequest(mockConfig, TEST_PATH);
                req.encode(buffer, i * 200);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
Back to top