- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 1,106 for Buffer (0.05 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: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransTransactNamedPipeResponseTest.java
@Test void testReadSetupWireFormat() { byte[] buffer = new byte[10]; int result = response.readSetupWireFormat(buffer, 0, 10); assertEquals(0, result, "readSetupWireFormat should always return 0."); } /** * Tests the readParametersWireFormat method. */ @Test void testReadParametersWireFormat() { byte[] buffer = new byte[10];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Java8Compatibility.java
import java.nio.Buffer; /** * Wrappers around {@link Buffer} methods that are covariantly overridden in Java 9+. See * https://github.com/google/guava/issues/3990 */ @GwtIncompatible final class Java8Compatibility { static void clear(Buffer b) { b.clear(); } static void flip(Buffer b) { b.flip(); } static void limit(Buffer b, int limit) { b.limit(limit); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 1.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ResponseJvmTest.kt
* most [BufferedSource] instances, but not of [Buffer]. */ private fun responseBody(content: String): ResponseBody { val data = Buffer().writeUtf8(content) val source: Source = object : Source { var closed = false override fun close() { closed = true } override fun read( sink: Buffer, byteCount: Long, ): Long {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 07 18:57:05 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComReadAndXResponseTest.java
bufferIndex += 2; bufferIndex += 2; // reserved writeInt2(dataLength, buffer, bufferIndex); bufferIndex += 2; writeInt2(dataOffset, buffer, bufferIndex); } @Test public void testReadParameterWordsWireFormat() { int bytesRead = response.readParameterWordsWireFormat(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/BufferCacheImplTest.java
assertSame(a, first, "First get should return first cached buffer"); assertSame(c, second, "Second get should return second cached buffer"); assertNotSame(d, third, "Third get should allocate a new buffer (not the dropped one)"); assertEquals(3, third.length, "Allocated buffer length matches configured maximum size"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java
SMBUtil.writeTime(testTime, buffer, 32); // changeTime SMBUtil.writeInt8(1024L, buffer, 40); // endOfFile SMBUtil.writeInt8(2048L, buffer, 48); // allocationSize SMBUtil.writeInt4(0x20, buffer, 56); // extFileAttributes SMBUtil.writeInt4(512, buffer, 64); // eaSize // Decode fileBothDirectoryInfo.decode(buffer, 0, buffer.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java
SMBUtil.writeInt4(-1000, buffer, bufferIndex + 11); SMBUtil.writeInt4(0, buffer, bufferIndex + 15); SMBUtil.writeInt4(0, buffer, bufferIndex + 19); SMBUtil.writeInt4(-5000, buffer, bufferIndex + 23); SMBUtil.writeInt4(0, buffer, bufferIndex + 27); SMBUtil.writeInt4(0, buffer, bufferIndex + 31); buffer[bufferIndex + 35] = (byte) 0x80; // 128 as unsigned
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.3K bytes - Viewed (0) -
cmd/data-usage-cache_gen_test.go
v := allTierStats{} var buf bytes.Buffer msgp.Encode(&buf, &v) b.SetBytes(int64(buf.Len())) en := msgp.NewWriter(msgp.Nowhere) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.EncodeMsg(en) } en.Flush() } func BenchmarkDecodeallTierStats(b *testing.B) { v := allTierStats{} var buf bytes.Buffer msgp.Encode(&buf, &v) b.SetBytes(int64(buf.Len()))
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Oct 04 22:23:33 UTC 2024 - 19K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
// Group SID at offset 40 buffer.position(40); buffer.put((byte) 0x01); // Revision buffer.put((byte) 0x01); // SubAuthorityCount buffer.put(new byte[] { 0, 0, 0, 0, 0, 2 }); // IdentifierAuthority buffer.putInt(0); // SubAuthority // DACL at offset 60 buffer.position(60); buffer.put((byte) 0x02); // AclRevision
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0)