Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 23 of 23 for getBuffers (1.22 sec)

  1. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  2. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  3. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
Back to top