Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for outputBuffer (0.06 sec)

  1. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java

        private byte[] outputBuffer;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            outputBuffer = new byte[1024];
            response = new TransCallNamedPipeResponse(mockConfig, outputBuffer);
        }
    
        @Test
        void testConstructor() {
            assertNotNull(response);
            // Verify that the outputBuffer is stored properly
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponse.java

            super(config);
            this.outputBuffer = null;
        }
    
        /**
         * Constructs an SMB2 IOCTL response with the given configuration and output buffer.
         *
         * @param config the configuration for this response
         * @param outputBuffer the buffer to receive output data
         */
        public Smb2IoctlResponse(final Configuration config, final byte[] outputBuffer) {
            super(config);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            // Test with data length exactly matching outputBuffer size
            byte[] testData = new byte[outputBuffer.length];
            Arrays.fill(testData, (byte) 0xFF);
            byte[] buffer = new byte[outputBuffer.length + 100];
            System.arraycopy(testData, 0, buffer, 0, outputBuffer.length);
    
            int result = response.readDataWireFormat(buffer, 0, outputBuffer.length);
    
            assertEquals(outputBuffer.length, result);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/io/Smb2ReadResponse.java

         *            the offset in the output buffer to start writing data
         */
        public Smb2ReadResponse(final Configuration config, final byte[] outputBuffer, final int outputBufferOffset) {
            super(config);
            this.outputBuffer = outputBuffer;
            this.outputBufferOffset = outputBufferOffset;
        }
    
        /**
         * Gets the number of bytes actually read
         *
         * @return the dataLength
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequest.java

         * @param fileId the file identifier
         * @param outputBuffer the output buffer for the IOCTL operation
         */
        public Smb2IoctlRequest(final Configuration config, final int controlCode, final byte[] fileId, final byte[] outputBuffer) {
            super(config, SMB2_IOCTL);
            this.controlCode = controlCode;
            this.fileId = fileId;
            this.outputBuffer = outputBuffer;
            this.maxOutputResponse = outputBuffer.length;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/io/Smb2ReadRequest.java

            this.outputBuffer = outputBuffer;
            this.outputBufferOffset = outputBufferOffset;
        }
    
        @Override
        protected Smb2ReadResponse createResponse(final CIFSContext tc, final ServerMessageBlock2Request<Smb2ReadResponse> req) {
            return new Smb2ReadResponse(tc.getConfig(), this.outputBuffer, this.outputBufferOffset);
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponse.java

            if (len > this.outputBuffer.length) {
                throw new SMBProtocolDecodingException("Payload exceeds buffer size");
            }
            System.arraycopy(buffer, bufferIndex, this.outputBuffer, 0, len);
            return len;
        }
    
        @Override
        public String toString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponse.java

        private final byte[] outputBuffer;
    
        /**
         * Constructs a response for a named pipe transaction.
         *
         * @param config the configuration to use
         * @param inB the input buffer to receive response data
         */
        public TransTransactNamedPipeResponse(final Configuration config, final byte[] inB) {
            super(config);
            this.outputBuffer = inB;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java

            byte[] outputBuffer = new byte[testData.length + 100];
            int writtenBytes =
                    compressionService.decompress(compressed, 0, compressed.length, outputBuffer, 50, CompressionService.COMPRESSION_LZ77);
    
            assertEquals(testData.length, writtenBytes);
    
            byte[] extracted = new byte[testData.length];
            System.arraycopy(outputBuffer, 50, extracted, 0, testData.length);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/compression/CompressionService.java

         *
         * @param compressedData the compressed data buffer
         * @param offset the offset in the compressed data buffer
         * @param length the length of compressed data
         * @param outputBuffer the output buffer for decompressed data
         * @param outputOffset the offset in the output buffer
         * @param algorithm the compression algorithm that was used
         * @return the number of bytes written to the output buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.2K bytes
    - Viewed (0)
Back to top