Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for getBuffers (0.07 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                    req.maxBufferSize = snd_buf_size;
                    resp.reset();
    
                    try {
                        BufferCache.getBuffers(req, resp);
    
                        /*
                         * First request w/ interim response
                         */
    
                        req.nextElement();
                        if (req.hasMoreElements()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  2. docs/smb3-features/05-rdma-smb-direct-design.md

            RdmaMemoryRegion sendRegion = bufferManager.getSendRegion(requestBuffer.remaining());
            sendRegion.getBuffer().put(requestBuffer);
            sendRegion.getBuffer().flip();
            
            try {
                // Send via RDMA
                rdmaConnection.send(sendRegion.getBuffer(), sendRegion);
                rdmaConnection.consumeSendCredit();
                
                // Receive response
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 35.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java

                // Test data preparation
                byte[] testData = "Test RDMA data transfer".getBytes();
                sendBuffer.getBuffer().put(testData);
                sendBuffer.getBuffer().flip();
                assertEquals(testData.length, sendBuffer.getBuffer().remaining(), "Buffer should contain test data");
    
                // Clean up
                bufferManager.releaseSendRegion(sendBuffer);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/dcerpc/DcerpcHandle.java

            if (this.state == 0) {
                bind();
            }
            final byte[] inB = this.transportContext.getBufferCache().getBuffer();
            final byte[] out = this.transportContext.getBufferCache().getBuffer();
            try {
                final NdrBuffer buf = encodeMessage(msg, out);
                final int off = sendFragments(msg, out, buf);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/CriticalPerformanceTest.java

                            // Test allocation performance
                            long allocStart = System.nanoTime();
                            byte[] buffer = BufferCache.getBuffer();
                            long allocEnd = System.nanoTime();
                            totalAllocTime.addAndGet(allocEnd - allocStart);
                            allocations.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)
  6. src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java

            boolean isDirect;
            DcerpcException de;
    
            if (state == 0) {
                bind();
            }
    
            isDirect = true;
    
            stub = jcifs.smb1.smb1.BufferCache.getBuffer();
            try {
                int off, tot, n;
    
                buf = new NdrBuffer(stub, 0);
    
                msg.flags = DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG;
                msg.call_id = call_id++;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

        public int getTailSpace() {
            return buf.length - index;
        }
    
        /**
         * Returns the underlying byte buffer.
         *
         * @return the byte buffer
         */
        public byte[] getBuffer() {
            return buf;
        }
    
        /**
         * Aligns the buffer index to the specified boundary with a fill value.
         *
         * @param boundary the alignment boundary
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

            lenient().when(mockContext.getBufferCache()).thenReturn(mockBufferCache);
    
            // Setup buffer cache to return buffers for sendrecv operations
            lenient().when(mockBufferCache.getBuffer()).thenReturn(new byte[8192]);
        }
    
        /**
         * Helper method to create a DcerpcPipeHandle with injected mocks
         * Uses mock to avoid constructor issues while allowing real method calls
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/rdma/disni/DisniRdmaConnection.java

                // In real implementation, this would receive using DiSNI:
                // RdmaCompletionEvent event = endpoint.getCqProcessor().getCqEvent(timeout);
                // if (event != null) {
                //     return event.getBuffer();
                // }
                // return null;
    
                // For skeleton implementation, return null (timeout)
                return null;
    
            } catch (Exception e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

        public int getTailSpace() {
            return this.buf.length - this.index;
        }
    
        /**
         * Returns the underlying byte buffer.
         *
         * @return the byte buffer
         */
        public byte[] getBuffer() {
            return this.buf;
        }
    
        /**
         * Aligns the buffer index to the specified boundary with a fill value.
         *
         * @param boundary the alignment boundary
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.7K bytes
    - Viewed (0)
Back to top