- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for 1KB (0.01 seconds)
-
internal/config/crypto_test.go
if err != nil { b.Fatal(err) } if _, err = io.Copy(io.Discard, ciphertext); err != nil { b.Fatal(err) } plaintext.Reset(data) } } b.Run("1KB", func(b *testing.B) { benchmarkEncrypt(1*1024, b) }) b.Run("512KB", func(b *testing.B) { benchmarkEncrypt(512*1024, b) }) b.Run("1MB", func(b *testing.B) { benchmarkEncrypt(1024*1024, b) })Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 3.2K bytes - Click Count (0) -
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(); }Created: Sat Dec 20 08:55:33 GMT 2025 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 10.3K bytes - Click Count (0) -
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(); }Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 15.3K bytes - Click Count (0) -
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)"); }
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 24K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
@Test void testLargeFileOperations() throws Exception { SmbFile file = new SmbFile(baseUrl + "shared/largefile.bin", context); // Create a smaller test file (1KB instead of 1MB) byte[] data = new byte[1024]; for (int i = 0; i < data.length; i++) { data[i] = (byte) (i % 256); } // Create file and write dataCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 56K bytes - Click Count (0)