- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 2,175 for seek (0.03 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/archive/tar/tar_test.go
} f.pos += int64(len(b)) return len(b), nil } func (f *testFile) Seek(pos int64, whence int) (int64, error) { if pos == 0 && whence == io.SeekCurrent { return f.pos, nil } if len(f.ops) == 0 { return 0, errors.New("unexpected Seek operation") } s, ok := f.ops[0].(int64) if !ok { return 0, errors.New("unexpected Seek operation") } if s != pos || whence != io.SeekCurrent {
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Jul 25 00:25:45 GMT 2024 - 23.9K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComOpenAndXResponse.java
return this.lastWriteTime; } /** * {@inheritDoc} * * @see jcifs.internal.SmbBasicFileInfo#getCreateTime() */ @Override public long getCreateTime() { return 0; } /** * {@inheritDoc} * * @see jcifs.internal.SmbBasicFileInfo#getLastAccessTime() */ @Override public long getLastAccessTime() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5.8K bytes - Click Count (0) -
docs/en/docs/tutorial/request-files.md
* `write(data)`: Writes `data` (`str` or `bytes`) to the file. * `read(size)`: Reads `size` (`int`) bytes/characters of the file. * `seek(offset)`: Goes to the byte position `offset` (`int`) in the file. * E.g., `await myfile.seek(0)` would go to the start of the file. * This is especially useful if you run `await myfile.read()` once and then need to read the contents again. * `close()`: Closes the file.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 7K bytes - Click Count (0) -
src/archive/tar/writer.go
default: return n, nil } } func (sw *sparseFileWriter) ReadFrom(r io.Reader) (n int64, err error) { rs, ok := r.(io.ReadSeeker) if ok { if _, err := rs.Seek(0, io.SeekCurrent); err != nil { ok = false // Not all io.Seeker can really seek } } if !ok { return io.Copy(struct{ io.Writer }{sw}, r) } var readLastByte bool pos0 := sw.pos
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Mon Feb 03 16:38:43 GMT 2025 - 19.7K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java
} /** * Sets the file pointer to the specified position. * * @param pos the new file pointer position * @throws SmbException if an I/O error occurs */ public void seek(final long pos) throws SmbException { fp = pos; } /** * Returns the length of the file. * * @return the file length in bytesCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 14.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
throw SmbException.wrap(e); } } @Override public long getFilePointer() { return this.fp; } @Override public void seek(final long pos) { this.fp = pos; } @Override public long length() throws SmbException { return this.file.length(); } @Override
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/test/java/jcifs/smb/SmbRandomAccessFileTest.java
assertEquals(0, raf.skipBytes(-3)); } @Test @DisplayName("seek() and getFilePointer(): set and get position") void seek_and_getFilePointer() throws Exception { SmbRandomAccessFile raf = newInstance("r", false, false, false); raf.seek(123L); assertEquals(123L, raf.getFilePointer()); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.1K bytes - Click Count (0) -
docs/LICENSE
violation; or 2. upon express reinstatement by the Licensor. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stopCreated: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon May 10 16:50:06 GMT 2021 - 18.2K bytes - Click Count (0) -
src/archive/tar/reader_test.go
} } type reader struct{ io.Reader } type readSeeker struct{ io.ReadSeeker } type readBadSeeker struct{ io.ReadSeeker } func (rbs *readBadSeeker) Seek(int64, int) (int64, error) { return 0, fmt.Errorf("illegal seek") } // TestReadTruncation tests the ending condition on various truncated files and // that truncated files are still detected even if the underlying io.Reader // satisfies io.Seeker.Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Dec 30 15:28:53 GMT 2025 - 47.5K bytes - Click Count (0) -
cmd/erasure-metadata.go
// but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "context" "encoding/hex" "fmt" "sort" "strings"
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 21.3K bytes - Click Count (0)