- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 1,315 for 2024 (1.44 sec)
-
src/test/java/org/codelibs/curl/io/ContentCacheTest.java
byte[] buffer1 = new byte[1024]; int bytesRead1 = stream1.read(buffer1); assertEquals(testContent, new String(buffer1, 0, bytesRead1, "UTF-8")); } // Second read - should work independently try (InputStream stream2 = cache.getInputStream()) { byte[] buffer2 = new byte[1024]; int bytesRead2 = stream2.read(buffer2);
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 11.2K bytes - Viewed (0) -
internal/ringbuffer/ring_buffer_benchmark_test.go
"testing" ) func BenchmarkRingBuffer_Sync(b *testing.B) { rb := New(1024) data := []byte(strings.Repeat("a", 512)) buf := make([]byte, 512) for b.Loop() { rb.Write(data) rb.Read(buf) } } func BenchmarkRingBuffer_AsyncRead(b *testing.B) { // Pretty useless benchmark, but it's here for completeness. rb := New(1024) data := []byte(strings.Repeat("a", 512)) buf := make([]byte, 512)
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 1.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
jcifs.internal.smb1.com.SmbComReadAndX req = cap.getValue(); assertEquals(1024, req.getMinCount(), "Named pipe minCount should be 1024"); assertEquals(1024, req.getMaxCount(), "Named pipe maxCount should be 1024"); assertEquals(1024, req.getRemaining(), "Named pipe remaining should be 1024"); } } @Nested @DisplayName("Lifecycle and exception mapping")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
void testSetData() { byte[] data = new byte[1024]; new Random().nextBytes(data); assertDoesNotThrow(() -> request.setData(data, 0, data.length)); } @Test @DisplayName("Should set data with partial buffer") void testSetDataPartialBuffer() { byte[] data = new byte[1024]; new Random().nextBytes(data);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0) -
LICENSES/third_party/forked/libcontainer/LICENSE
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.Registered: Fri Dec 26 09:05:12 UTC 2025 - Last Modified: Tue Oct 22 13:56:22 UTC 2024 - 10.5K bytes - Viewed (0) -
.github/pull_request_template.md
To make clear that you license your contribution under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0) you have to acknowledge this by using the following check-box. - [ ] I hereby declare this contribution to be licenced under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:30:05 UTC 2025 - 1.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/math/BigIntegerMathRoundingBenchmark.java
RoundingMode mode; @BeforeExperiment void setUp() { for (int i = 0; i < ARRAY_SIZE; i++) { positive[i] = randomPositiveBigInteger(1024); nonzero1[i] = randomNonZeroBigInteger(1024); nonzero2[i] = randomNonZeroBigInteger(1024); } } @Benchmark int log2(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcBindTest.java
void testPackageConstructorWithNullBinding() throws Exception { // Given when(mockHandle.getMaxXmit()).thenReturn(1024); when(mockHandle.getMaxRecv()).thenReturn(1024); // When DcerpcBind bindWithNullBinding = new DcerpcBind(null, mockHandle); // Then
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.7K bytes - Viewed (0) -
okhttp/src/commonTest/kotlin/okhttp3/internal/IsProbablyUtf8Test.kt
} @Test fun doesNotConsumeBuffer() { val buffer = Buffer() buffer.writeUtf8("hello ".repeat(1024)) assertThat(buffer.isProbablyUtf8(100L)).isTrue() assertThat(buffer.readUtf8()).isEqualTo("hello ".repeat(1024)) } /** Confirm [isProbablyUtf8] doesn't attempt to read the entire stream. */ @Test fun doesNotReadEntireSource() { val unlimitedSource =
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Mon Oct 06 22:47:06 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComTransactionTest.java
transaction = new TestSmbComTransaction(); transaction.command = ServerMessageBlock.SMB_COM_TRANSACTION; transaction.name = "\\PIPE\\test"; transaction.txn_buf = new byte[1024]; transaction.maxBufferSize = 1024; } @Test @DisplayName("Test reset() method resets transaction state") void testReset() { // Modify state transaction.nextElement(); // Reset
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0)