- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 292 for lseek (0.11 sec)
-
src/syscall/asm_linux_386.s
RET #define SYS__LLSEEK 140 /* from zsysnum_linux_386.go */ // func Seek(fd int, offset int64, whence int) (newoffset int64, err int) // Implemented in assembly to avoid allocation when // taking the address of the return value newoffset. // Underlying system call is // llseek(int fd, int offhi, int offlo, int64 *result, int whence) TEXT ·seek(SB),NOSPLIT,$0-28 CALL runtime·entersyscall(SB) MOVL $SYS__LLSEEK, AX // syscall entry
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 19:11:15 UTC 2023 - 3.1K bytes - Viewed (0) -
src/internal/poll/sendfile_windows.go
o := &fd.wop o.handle = src // TODO(brainman): skip calling syscall.Seek if OS allows it curpos, err := syscall.Seek(o.handle, 0, io.SeekCurrent) if err != nil { return 0, err } if n <= 0 { // We don't know the size of the file so infer it. // Find the number of bytes offset from curpos until the end of the file. n, err = syscall.Seek(o.handle, -curpos, io.SeekEnd) if err != nil { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 2.2K bytes - Viewed (0) -
src/testing/iotest/reader.go
if off, err := r.Seek(+1, 1); off != int64(middle) || err != nil { return fmt.Errorf("Seek(+1, 1) from %d = %d, %v, want %d, nil", middle-1, off, err, middle) } } // Seek(0, 1) should report the current file position (middle). if off, err := r.Seek(0, 1); off != int64(middle) || err != nil { return fmt.Errorf("Seek(0, 1) from %d = %d, %v, want %d, nil", middle, off, err, middle) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 17:55:47 UTC 2023 - 8K bytes - Viewed (0) -
src/debug/pe/section.go
type Section struct { SectionHeader Relocs []Reloc // Embed ReaderAt for ReadAt method. // Do not embed SectionReader directly // to avoid having Read and Seek. // If a client wants Read and Seek it must use // Open() to avoid fighting over the seek offset // with other clients. io.ReaderAt sr *io.SectionReader } // Data reads and returns the contents of the PE section s. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 3.5K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/btree/ByteOutputTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 2.5K bytes - Viewed (0) -
src/cmd/link/internal/ld/macho_combine_dwarf.go
var cmd loadCmd r.offset = r.next if _, err := r.f.Seek(r.offset, 0); err != nil { return cmd, err } if err := binary.Read(r.f, r.order, &cmd); err != nil { return cmd, err } r.next = r.offset + int64(cmd.Len) return cmd, nil } func (r loadCmdReader) ReadAt(offset int64, data interface{}) error { if _, err := r.f.Seek(r.offset+offset, 0); err != nil { return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 18:45:27 UTC 2024 - 13.3K bytes - Viewed (0) -
src/strings/reader.go
return nil } // Seek implements the [io.Seeker] interface. func (r *Reader) Seek(offset int64, whence int) (int64, error) { r.prevRune = -1 var abs int64 switch whence { case io.SeekStart: abs = offset case io.SeekCurrent: abs = r.i + offset case io.SeekEnd: abs = int64(len(r.s)) + offset default: return 0, errors.New("strings.Reader.Seek: invalid whence") } if abs < 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:10:31 UTC 2023 - 3.9K bytes - Viewed (0) -
src/io/io.go
// assume they are safe for parallel execution. package io import ( "errors" "sync" ) // Seek whence values. const ( SeekStart = 0 // seek relative to the origin of the file SeekCurrent = 1 // seek relative to the current offset SeekEnd = 2 // seek relative to the end ) // ErrShortWrite means that a write accepted fewer bytes than requested // but failed to return an explicit error.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:34:10 UTC 2024 - 21.6K bytes - Viewed (0) -
src/internal/xcoff/file.go
if _, err := s.sr.Seek(int64(stoff), io.SeekStart); err != nil { return nil, err } st := make([]byte, stlen) if _, err := io.ReadFull(s.sr, st); err != nil { return nil, err } // Read imported libraries libs, err := f.readImportIDs(s) if err != nil { return nil, err } // Read loader symbol table if _, err := s.sr.Seek(int64(symoff), io.SeekStart); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 12 14:42:29 UTC 2024 - 17.3K bytes - Viewed (0) -
src/internal/poll/fd_wasip1.go
// a bit brittle but cannot be addressed without a large change of the // algorithm in the os.(*File).readdir method. return n - len(b), nil } // Seek wraps syscall.Seek. func (fd *FD) Seek(offset int64, whence int) (int64, error) { if err := fd.incref(); err != nil { return 0, err } defer fd.decref() // syscall.Filetype is a uint8 but we store it as a uint32 in SysFile in
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 20:14:02 UTC 2024 - 6.7K bytes - Viewed (0)