Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for setBuffer (0.24 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

        @BeforeEach
        void setUp() {
            // Setup buffer cache mocks with lenient stubbing
            lenient().when(mockContext.getBufferCache()).thenReturn(mockBufferCache);
            lenient().when(mockBufferCache.getBuffer()).thenReturn(new byte[8192]);
            handle = new TestDcerpcHandle(mockContext, mockBinding);
        }
    
        @Nested
        @DisplayName("Binding Parsing Tests")
        class BindingParsingTests {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

        void testGetTailSpace() {
            ndrBuffer.setIndex(100);
            assertEquals(buffer.length - 100, ndrBuffer.getTailSpace());
        }
    
        @Test
        void testGetBuffer() {
            assertSame(buffer, ndrBuffer.getBuffer());
        }
    
        @Test
        void testAlignWithValue() {
            // Align to 4-byte boundary with a fill value
            ndrBuffer.setIndex(1);
            int alignedBytes = ndrBuffer.align(4, (byte) 0xFF);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  9. okhttp/src/androidMain/baseline-prof.txt

    HSPLokio/RealBufferedSink;->writeShort(I)Lokio/BufferedSink;
    HSPLokio/RealBufferedSource;-><init>(Lokio/Source;)V
    HSPLokio/RealBufferedSource;->close()V
    HSPLokio/RealBufferedSource;->exhausted()Z
    HSPLokio/RealBufferedSource;->getBuffer()Lokio/Buffer;
    HSPLokio/RealBufferedSource;->read(Lokio/Buffer;J)J
    HSPLokio/RealBufferedSource;->readByte()B
    HSPLokio/RealBufferedSource;->readByteString(J)Lokio/ByteString;
    HSPLokio/RealBufferedSource;->readInt()I
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Dec 30 23:28:56 UTC 2024
    - 127.9K bytes
    - Viewed (0)
Back to top