Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for setOffset (0.07 sec)

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

                    if ( th.isSMB2() ) {
                        Smb2ReadRequest request = new Smb2ReadRequest(th.getConfig(), fh.getFileId(), b, off);
                        request.setOffset(this.fp);
                        request.setReadLength(r);
                        request.setRemainingBytes(len - off);
                        try {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 12:01:33 UTC 2020
    - 18.5K bytes
    - Viewed (0)
  2. 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 Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 17K bytes
    - Viewed (0)
  3. 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 Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. src/archive/zip/writer_test.go

    		writeTests[1].Data = nil
    	}()
    
    	// write a zip file
    	buf := new(bytes.Buffer)
    	existingData := []byte{1, 2, 3, 1, 2, 3, 1, 2, 3}
    	n, _ := buf.Write(existingData)
    	w := NewWriter(buf)
    	w.SetOffset(int64(n))
    
    	for _, wt := range writeTests {
    		testCreate(t, w, &wt)
    	}
    
    	if err := w.Close(); err != nil {
    		t.Fatal(err)
    	}
    
    	// read it back
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFileOutputStream.java

                    w = len > blockSize ? blockSize : len;
    
                    if ( this.smb2 ) {
                        Smb2WriteRequest wr = new Smb2WriteRequest(th.getConfig(), fh.getFileId());
                        wr.setOffset(this.fp);
                        wr.setData(b, off, w);
    
                        Smb2WriteResponse resp = th.send(wr, RequestParam.NO_RETRY);
                        long cnt = resp.getCount();
                        this.fp += cnt;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Nov 13 15:14:04 UTC 2021
    - 11.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFileInputStream.java

                    try {
    
                        if ( th.isSMB2() ) {
                            Smb2ReadRequest request = new Smb2ReadRequest(th.getConfig(), fd.getFileId(), b, off);
                            request.setOffset(type == SmbConstants.TYPE_NAMED_PIPE ? 0 : this.fp);
                            request.setReadLength(r);
                            request.setRemainingBytes(len - r);
    
                            try {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun May 17 08:55:14 UTC 2020
    - 13.2K bytes
    - Viewed (0)
  7. api/go1.5.txt

    pkg archive/zip, method (*Writer) SetOffset(int64)
    pkg bufio, method (*Reader) Discard(int) (int, error)
    pkg bufio, method (ReadWriter) Discard(int) (int, error)
    pkg bytes, func LastIndexByte([]uint8, uint8) int
    pkg bytes, method (*Buffer) Cap() int
    pkg bytes, method (*Reader) Size() int64
    pkg crypto, const SHA512_224 = 14
    pkg crypto, const SHA512_224 Hash
    pkg crypto, const SHA512_256 = 15
    pkg crypto, const SHA512_256 Hash
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorTest.java

                    assertEquals(1, list.getCurrentPageNumber());
                    assertEquals(1, list.getCurrentStartRecordNumber());
                    assertEquals(0, list.getOffset());
                    assertEquals(10, list.getPageSize());
                    assertEquals(0, list.getStart());
                    assertEquals("0", list.get(0).get(ID_FIELD));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/rank/fusion/RankFusionProcessor.java

            }
            final int pageSize = params.getPageSize();
            final int startPosition = params.getStartPosition();
            if (startPosition * 2 >= windowSize) {
                int offset = params.getOffset();
                if (offset < 0) {
                    offset = 0;
                } else if (offset > windowSize / 2) {
                    offset = windowSize / 2;
                }
                int start = startPosition - offset;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

                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);
            }
            byte[] signature = digest();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 10.6K bytes
    - Viewed (0)
Back to top