Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for adjustOffset (0.06 sec)

  1. src/main/java/jcifs/internal/smb1/com/SmbComReadAndXResponse.java

        public final int getOffset() {
            return this.offset;
        }
    
        /**
         * Adjusts the offset by the specified amount.
         *
         * @param n the amount to adjust the offset
         */
        public void adjustOffset(final int n) {
            this.offset += n;
        }
    
        /**
         * Gets the data length.
         *
         * @return the dataLength
         */
        public final int getDataLength() {
            return this.dataLength;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                        return (int) (this.fp - start > 0L ? this.fp - start : -1);
                    }
                    this.fp += n;
                    len -= n;
                    off += n;
                    response.adjustOffset(n);
                } while (len > 0 && n == r);
    
                return (int) (this.fp - start);
            } catch (final CIFSException e) {
                throw SmbException.wrap(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)
  3. src/main/java/jcifs/smb/SmbFileInputStream.java

                    }
    
                    this.fp += n;
                    len -= n;
                    if (response != null) {
                        response.adjustOffset(n);
                    }
    
                } while (len > effectiveBlockSize && n == r);
    
                // Optimization: Continue reading if we have small remaining data and got full blocks
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
Back to top