- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 934 for Buffers (0.08 sec)
-
src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java
assertNotNull(buffer, "Buffer should not be null even when cache is full"); assertEquals(SmbComTransaction.TRANSACTION_BUF_SIZE, buffer.length, "Buffer should have correct size"); buffers.add(buffer); } // When - Release all buffers back for (byte[] buffer : buffers) { BufferCache.releaseBuffer(buffer); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.6K bytes - Viewed (0) -
src/test/java/jcifs/BufferCacheTest.java
byte[] buffer2 = testCache.getBuffer(); // Then assertNotNull(buffer1, "First buffer should not be null"); assertNotNull(buffer2, "Second buffer should not be null"); assertEquals(1024, buffer1.length, "Buffer should have expected size"); assertEquals(1024, buffer2.length, "Buffer should have expected size");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
internal/ringbuffer/ring_buffer_benchmark_test.go
go func() { for { rb.Read(buf) } }() for b.Loop() { rb.Write(data) } } func BenchmarkRingBuffer_AsyncReadBlocking(b *testing.B) { const sz = 512 const buffers = 10 rb := New(sz * buffers) rb.SetBlocking(true) data := []byte(strings.Repeat("a", sz)) buf := make([]byte, sz) go func() { for { rb.Read(buf) } }() for b.Loop() { rb.Write(data) }
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/internal/SmbNegotiationTest.java
assertSame(testResponseBuffer, negotiationWithNullResponse.getResponseRaw()); } @Test @DisplayName("Constructor with null buffers should work") void testConstructorWithNullBuffers() { // Test that null buffers are handled properly SmbNegotiation negotiationWithNullBuffers = new SmbNegotiation(mockRequest, mockResponse, null, null);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
cmd/metrics-v3-system-memory.go
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Apr 17 05:10:25 UTC 2024 - 2.2K bytes - Viewed (0) -
internal/grid/grid.go
const ( // minBufferSize is the minimum buffer size. // Buffers below this is not reused. minBufferSize = 1 << 10 // defaultBufferSize is the default buffer allocation size. defaultBufferSize = 4 << 10 // maxBufferSize is the maximum buffer size. // Buffers larger than this is not reused. maxBufferSize = 96 << 10 // This is the assumed size of bigger buffers and allocation size. biggerBufMin = 32 << 10
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacTest.java
assertThrows(Exception.class, () -> new Pac(pacData, keys)); } @Test void testZeroBufferCount() throws IOException { // Test PAC with zero buffers (missing required buffers) ByteArrayOutputStream baos = new ByteArrayOutputStream(); writeLittleEndianInt(baos, 0); // bufferCount = 0 writeLittleEndianInt(baos, PacConstants.PAC_VERSION); // valid version
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
byte[][] buffers = new byte[][] { new byte[8], new byte[8] }; when(src.toString()).thenReturn("smb://src"); when(dest.toString()).thenReturn("smb://dest"); // Act + Assert SmbException ex = assertThrows(SmbException.class, () -> SmbCopyUtil.copyFile(src, dest, buffers, 8, new WriterThread(), sh, dh));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaBufferManager.java
* * @param buffer buffer to release */ public void releaseBuffer(ByteBuffer buffer) { // For direct buffers, we rely on GC // Could implement a more sophisticated buffer pool here } /** * Clean up all pooled regions * * This method should be called when shutting down to * release all resources. */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 8.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/BufferCacheImpl.java
*/ public BufferCacheImpl(final Configuration cfg) { this(cfg.getBufferCacheSize(), cfg.getMaximumBufferSize()); } /** * Constructs a buffer cache with specified parameters. * * @param maxBuffers the maximum number of buffers to cache * @param maxSize the size of each buffer in bytes * */ public BufferCacheImpl(final int maxBuffers, final int maxSize) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.2K bytes - Viewed (0)