- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for SetOffset (0.04 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
src/main/java/jcifs/smb/SmbFileOutputStream.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.8K bytes - Viewed (0) -
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 Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Jan 28 04:20:09 UTC 2025 - 14.4K bytes - Viewed (0) -
docs/smb3-features/03-multi-channel-design.md
try { Smb2ReadRequest request = new Smb2ReadRequest(); request.setFileId(this.fileId); request.setOffset(offset + chunkOffset); request.setLength(chunkLength); Smb2ReadResponse response = (Smb2ReadResponse) channel.getTransport().send(request);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 39.6K bytes - Viewed (0) -
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 Sep 09 11:13:09 UTC 2025 - Last Modified: Thu Jul 30 21:14:09 UTC 2015 - 46.6K bytes - Viewed (0)