Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for getBuffer (0.08 sec)

  1. src/test/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaProviderTest.java

            RdmaMemoryRegion region = provider.registerMemory(buffer, access);
            assertNotNull(region, "Memory region should not be null");
            assertEquals(buffer, region.getBuffer(), "Buffer should match");
            assertEquals(1024, region.getSize(), "Size should match buffer size");
            assertTrue(region.hasAccess(RdmaAccess.LOCAL_READ), "Should have local read access");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/rdma/RdmaBufferManager.java

            if (minSize <= sendBufferSize) {
                RdmaMemoryRegion region = availableSendRegions.poll();
                if (region != null) {
                    region.getBuffer().clear();
                    return region;
                }
            }
    
            // Allocate new buffer
            ByteBuffer buffer = ByteBuffer.allocateDirect(Math.max(minSize, sendBufferSize));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  3. 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)
  4. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

                alignmentBytes = 1; // Need 1 byte of padding for 2-byte alignment
            }
    
            // The value 0xCD should be encoded as a 16-bit value (0x00CD) in little-endian
            byte[] bufferData = buf.getBuffer();
            assertEquals((byte) 0xCD, bufferData[startIndex + alignmentBytes], "Least significant byte should be first");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTransportImpl.java

            resp.reset();
    
            long k;
    
            /*
             * First request w/ interim response
             */
            try {
                req.setBuffer(getContext().getBufferCache().getBuffer());
                req.nextElement();
                if (req.hasMoreElements()) {
                    final SmbComBlankResponse interim = new SmbComBlankResponse(getContext().getConfig());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  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/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)
Back to top