- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 906 for buffer2 (0.04 sec)
-
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt
private lateinit var server: MockWebServer private lateinit var client: OkHttpClient @BeforeEach fun setUp() { // Sockets on some platforms can have large buffers that mean writes do not block when // required. These socket factories explicitly set the buffer sizes on sockets created. server = MockWebServer() server.serverSocketFactory = object : DelegatingServerSocketFactory(getDefault()) {
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/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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 8.7K bytes - Viewed (0) -
docs/smb3-features/05-rdma-smb-direct-design.md
// Pre-allocate buffer pool initializeBufferPool(); } private void initializeBufferPool() { // Allocate send buffers for (int i = 0; i < initialSendBuffers; i++) { try { ByteBuffer buffer = ByteBuffer.allocateDirect(sendBufferSize); RdmaMemoryRegion region = provider.registerMemory(buffer,
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 35.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/BufferCache.java
*/ package jcifs.smb1.smb1; import jcifs.smb1.Config; /** * Buffer cache implementation for SMB1 protocol operations. * Manages a pool of byte buffers to reduce garbage collection overhead. * * Performance optimizations: * - Uses ConcurrentLinkedQueue for O(1) operations * - Lock-free operations for better concurrency * - Proper buffer validation and limits */ public class BufferCache { /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java
assertTrue(str.startsWith("TransWaitNamedPipeResponse["), "toString should begin with class name"); } /** * Verify that all methods can be called with null buffers without * throwing exceptions. This test ensures robustness of the implementation. */ @Test void methodsHandleNullBuffersGracefully() { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/dfs/DfsReferralRequestBuffer.java
package jcifs.internal.dfs; import java.nio.charset.StandardCharsets; import jcifs.Encodable; import jcifs.internal.util.SMBUtil; /** * DFS (Distributed File System) referral request buffer encoder. * Creates encoded request buffers for DFS referral requests, specifying the maximum * referral level and target path for which DFS resolution is requested. * * @author mbechler */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.3K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteStreams.java
int initialBufferSize = min(BUFFER_SIZE, max(128, Integer.highestOneBit(totalLen) * 2)); // Starting with an 8k buffer, double the size of each successive buffer. Smaller buffers // quadruple in size until they reach 8k, to minimize the number of small reads for longer // streams. Buffers are retained in a deque so that there's no copying between buffers while
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 31.1K bytes - Viewed (0)