- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 45 for SetOffset (0.15 seconds)
-
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 }
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Jan 28 04:20:09 GMT 2025 - 19.4K bytes - Click Count (0) -
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) */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.4K bytes - Click Count (0) -
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 minimumCountCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 7.8K bytes - Click Count (0) -
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 keyCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 7.1K bytes - Click Count (0) -
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() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 22.4K bytes - Click Count (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() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.8K bytes - Click Count (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; } } }
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sat Mar 15 06:51:20 GMT 2025 - 17K bytes - Click Count (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 {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 18.8K bytes - Click Count (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-aheadCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.6K bytes - Click Count (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
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Jul 30 21:14:09 GMT 2015 - 46.6K bytes - Click Count (0)