Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for getDataLength (0.46 sec)

  1. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

        }
    
        @Test
        @DisplayName("Should initially have zero data length")
        void testInitialDataLength() {
            // Then
            assertEquals(0, response.getDataLength());
        }
    
        @Test
        @DisplayName("Should initially have zero data remaining")
        void testInitialDataRemaining() {
            // Then
            assertEquals(0, response.getDataRemaining());
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/com/SmbComReadAndXResponse.java

         */
        public void adjustOffset(final int n) {
            this.offset += n;
        }
    
        /**
         * Gets the data length.
         *
         * @return the dataLength
         */
        public final int getDataLength() {
            return this.dataLength;
        }
    
        /**
         * Gets the data offset.
         *
         * @return the dataOffset
         */
        public final int getDataOffset() {
            return this.dataOffset;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

                SmbFileInputStream in = newStream();
    
                // Arrange SMB2 response to return 3 bytes
                Smb2ReadResponse smb2Resp = mock(Smb2ReadResponse.class);
                when(smb2Resp.getDataLength()).thenReturn(3);
                when(mockTree.send(any(Request.class), any(RequestParam.class))).thenAnswer(inv -> (CommonServerMessageBlockResponse) smb2Resp);
    
                byte[] buf = new byte[16];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbFileInputStream.java

                            try {
                                final Smb2ReadResponse resp = th.send(request, RequestParam.NO_RETRY);
                                n = resp.getDataLength();
                            } catch (final SmbException e) {
                                if (e.getNtStatus() == 0xC0000011) { // NT_STATUS_END_OF_FILE
                                    log.debug("Reached end of file", e);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

                 */
                final SmbComReadAndXResponse raxr = (SmbComReadAndXResponse) msg;
                final int length = msg.getLength() - raxr.getDataLength();
                update(data, index, length - SmbConstants.SIGNATURE_OFFSET - 8);
                update(raxr.getData(), raxr.getOffset(), raxr.getDataLength());
            } else {
                update(data, index, msg.getLength() - SmbConstants.SIGNATURE_OFFSET - 8);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/io/Smb2ReadResponse.java

            this.outputBufferOffset = outputBufferOffset;
        }
    
        /**
         * Gets the number of bytes actually read
         *
         * @return the dataLength
         */
        public int getDataLength() {
            return this.dataLength;
        }
    
        /**
         * Gets the number of bytes remaining to be read
         *
         * @return the dataRemaining
         */
        public int getDataRemaining() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/ArtifactTransferEvent.java

        }
    
        public int getDataOffset() {
            return dataOffset;
        }
    
        public void setDataOffset(int dataOffset) {
            this.dataOffset = dataOffset;
        }
    
        public int getDataLength() {
            return dataLength;
        }
    
        public void setDataLength(int dataLength) {
            this.dataLength = dataLength;
        }
    
        @Override
        public String toString() {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                        request.setRemainingBytes(len - off);
                        try {
                            final Smb2ReadResponse resp = th.send(request, RequestParam.NO_RETRY);
                            n = resp.getDataLength();
                        } catch (final SmbException e) {
                            if (e.getNtStatus() != 0xC0000011) {
                                throw e;
                            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java

            when(readResponse.getCommand()).thenReturn((int) ServerMessageBlock.SMB_COM_READ_ANDX);
            when(readResponse.getLength()).thenReturn(100);
            when(readResponse.getDataLength()).thenReturn(50);
            when(readResponse.getData()).thenReturn(readData);
            when(readResponse.getOffset()).thenReturn(0);
    
            boolean result = digest.verify(data, 0, data.length, 0, readResponse);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  10. docs/smb3-features/03-multi-channel-design.md

                        channel.getTransport().send(request);
                    
                    System.arraycopy(response.getData(), 0, buffer, 
                        chunkOffset, response.getDataLength());
                        
                } catch (Exception e) {
                    throw new CompletionException(e);
                }
            });
            
            futures.add(future);
        }
        
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
Back to top