Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for 1KB (0.01 sec)

  1. src/test/java/org/codelibs/core/io/FileUtilTest.java

        @Test(expected = IORuntimeException.class)
        public void testReadBytes_CustomMaxSize_ExceedsLimit() throws Exception {
            final File file = tempFolder.newFile("medium.txt");
            final byte[] data = new byte[1024]; // 1KB
            final FileOutputStream out = new FileOutputStream(file);
            try {
                out.write(data);
            } finally {
                out.close();
            }
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java

        @Test
        public void testRdmaStatisticsTracking() throws Exception {
            RdmaStatistics stats = new RdmaStatistics();
    
            // Simulate various RDMA operations
            stats.recordRdmaRead(1024, 1000000); // 1KB in 1ms
            stats.recordRdmaWrite(2048, 2000000); // 2KB in 2ms
            stats.recordRdmaSend(512, 500000); // 512B in 0.5ms
            stats.recordRdmaReceive(1536, 1500000); // 1.5KB in 1.5ms
            stats.recordError();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/CriticalPerformanceTest.java

                            // Simulate the atomic byte tracking operation
                            long start = System.nanoTime();
                            mockBytesEncrypted.addAndGet(1024); // Simulate 1KB message
                            long end = System.nanoTime();
    
                            totalTime.addAndGet(end - start);
                            operations.incrementAndGet();
                        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

                    final int dataLen = SMBUtil.readInt2(buffer, ncpos + 2);
    
                    // Validate context data length
                    if (dataLen < 0 || dataLen > 1024) { // 1KB max per context
                        throw new SMBProtocolDecodingException(
                                "Invalid negotiate context data length: " + dataLen + " at position " + i + " (must be 0-1024)");
                    }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
Back to top