Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 44 for getOffset (0.12 sec)

  1. src/main/java/jcifs/smb/SmbTransportImpl.java

                        readn(this.in, buffer, 4 + off, pad);
                    }
    
                    if (r.getDataLength() > 0) {
                        readn(this.in, r.getData(), r.getOffset(), r.getDataLength()); /* read direct */
                    }
                } else {
                    readn(this.in, buffer, 4 + SMB1_HEADER_LENGTH, size - SMB1_HEADER_LENGTH);
                    resp.decode(buffer, 4);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

            }
    
            @Test
            @DisplayName("Should set offset correctly")
            void testSetOffset() {
                assertDoesNotThrow(() -> request.setOffset(0L));
                assertDoesNotThrow(() -> request.setOffset(1024L));
                assertDoesNotThrow(() -> request.setOffset(Long.MAX_VALUE));
            }
    
            @Test
            @DisplayName("Should set minimum count correctly")
            void testSetMinimumCount() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            @Test
            @DisplayName("Should set offset correctly")
            void testSetOffset() {
                assertDoesNotThrow(() -> request.setOffset(0L));
                assertDoesNotThrow(() -> request.setOffset(1024L));
                assertDoesNotThrow(() -> request.setOffset(Long.MAX_VALUE));
            }
    
            @Test
            @DisplayName("Should set remaining bytes")
            void testSetRemainingBytes() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/opensearch/extension/analysis/NGramSynonymTokenizer.java

                    clearAttributes();
                    termAttr.append(nextToken.word);
                    finalOffset = correctOffset(blkStart + nextToken.endOffset);
                    offsetAttr.setOffset(correctOffset(blkStart + nextToken.startOffset), finalOffset);
                    posIncAttr.setPositionIncrement(nextToken.posInc);
                    return true;
                }
            }
        }
    
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 17K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComSeek.java

            this.mode = mode;
        }
    
        /**
         * Sets the seek offset.
         *
         * @param offset
         *            the offset to set
         */
        public final void setOffset(final long offset) {
            this.offset = offset;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb1.ServerMessageBlock#writeParameterWordsWireFormat(byte[], int)
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  6. src/archive/zip/writer.go

    	return &Writer{cw: &countWriter{w: bufio.NewWriter(w)}}
    }
    
    // SetOffset sets the offset of the beginning of the zip data within the
    // underlying writer. It should be used when the zip data is appended to an
    // existing file, such as a binary executable.
    // It must be called before any data is written.
    func (w *Writer) SetOffset(n int64) {
    	if w.cw.count != 0 {
    		panic("zip: SetOffset called after data was written")
    	}
    	w.cw.count = n
    }
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Jan 28 04:20:09 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/io/Smb2ReadRequest.java

            this.readLength = readLength;
        }
    
        /**
         * Sets the file offset from which to start reading
         *
         * @param offset
         *            the offset to set
         */
        public void setOffset(final long offset) {
            this.offset = offset;
        }
    
        /**
         * Sets the minimum number of bytes that must be read for the operation to succeed
         *
         * @param minimumCount
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFileInputStream.java

                    try {
                        if (th.isSMB2()) {
                            final Smb2ReadRequest request = new Smb2ReadRequest(th.getConfig(), fd.getFileId(), b, off);
                            request.setOffset(type == SmbConstants.TYPE_NAMED_PIPE ? 0 : this.fp);
                            request.setReadLength(r);
    
                            // Optimization: Set remaining bytes hint for server read-ahead
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                    if (th.isSMB2()) {
                        final Smb2ReadRequest request = new Smb2ReadRequest(th.getConfig(), fh.getFileId(), b, off);
                        request.setOffset(this.fp);
                        request.setReadLength(r);
                        request.setRemainingBytes(len - off);
                        try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/io/Smb2WriteRequest.java

            this.writeFlags = writeFlags;
        }
    
        /**
         * Sets the file offset where the write operation should begin.
         *
         * @param offset the offset to set
         */
        public void setOffset(final long offset) {
            this.offset = offset;
        }
    
        /**
         * Add RDMA channel information for direct memory access
         *
         * @param remoteKey remote memory key
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.1K bytes
    - Viewed (0)
Back to top