- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for 1024 (0.02 sec)
-
src/main/java/jcifs/smb/compression/DefaultCompressionService.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0) -
cmd/erasure-decode_test.go
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 21K bytes - Viewed (0) -
cmd/erasure-sets_test.go
key int }{ {16}, {64}, {128}, {256}, {512}, {1024}, } for _, testCase := range cases { key := randString(testCase.key) b.Run("", func(b *testing.B) { b.SetBytes(1024) b.ReportAllocs() b.ResetTimer() for b.Loop() { crcHashMod(key, 16) } }) } } func BenchmarkSipHash(b *testing.B) { cases := []struct { key int }{ {16}, {64},Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/jcifs/util/ServerResponseValidatorTest.java
@BeforeEach public void setUp() { validator = new ServerResponseValidator(); } @Test public void testValidBuffer() throws Exception { byte[] buffer = new byte[1024]; validator.validateBuffer(buffer, 100, 2048); // Should pass without exception } @Test public void testNullBuffer() throws Exception { assertThrows(SmbException.class, () -> {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileInputStream.java
if (type == SmbConstants.TYPE_NAMED_PIPE) { // Use fixed 1024 values for named pipes request.setMinCount(1024); request.setMaxCount(1024); request.setRemaining(1024); } else if (this.largeReadX) { // Optimize large read requestsRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.6K bytes - Viewed (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(); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt
.url(server.url("/")) .build(), ) val response = call.execute() interruptLater(500) val responseBody = response.body.byteStream() val buffer = ByteArray(1024) assertFailsWith<IOException> { while (responseBody.read(buffer) != -1) { } } responseBody.close() } @Test fun forciblyStopDispatcher() { client =
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 11:30:11 UTC 2025 - 6.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
int contextPos = 192; SMBUtil.writeInt2(1, buffer, contextPos); // Context type SMBUtil.writeInt2(2000, buffer, contextPos + 2); // Excessive data length (> 1024) // Add padding for 8-byte alignment SMBUtil.writeInt2(0, buffer, contextPos + 4); // Reserved // The validation logic is implemented and verified through code inspectionRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java
*/ @Test public void testInvalidBufferSizeRejection() { // Given - Buffers with various invalid sizes byte[] tooSmall = new byte[1024]; byte[] tooLarge = new byte[SmbComTransaction.TRANSACTION_BUF_SIZE + 1]; byte[] empty = new byte[0]; // When - Try to release invalid buffers assertDoesNotThrow(() -> {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java
@BeforeEach public void setUp() { compressionService = new DefaultCompressionService(); // Create test data with patterns that should compress well testData = generateTestData(1024); largeTestData = generateTestData(8192); } @Test @DisplayName("Test supported algorithms") public void testSupportedAlgorithms() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.1K bytes - Viewed (0)