- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 1,968 for whence (0.06 seconds)
-
cmd/dummy-data-generator_test.go
extraBytes := d.idx - d.length n -= int(extraBytes) if n < 0 { n = 0 } err = io.EOF } return n, err } func (d *DummyDataGen) Seek(offset int64, whence int) (int64, error) { switch whence { case io.SeekStart: if offset < 0 { return 0, errors.New("Invalid offset") } d.idx = offset case io.SeekCurrent: if d.idx+offset < 0 { return 0, errors.New("Invalid offset")
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 4.8K bytes - Click Count (0) -
src/bytes/reader.go
// 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("bytes.Reader.Seek: invalid whence") } if abs < 0 {
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Jul 16 18:17:37 GMT 2024 - 3.9K bytes - Click Count (0) -
internal/s3select/select.go
offset: 0, reader: nil, } } // Seek call to implement io.Seeker func (rsc *ObjectReadSeekCloser) Seek(offset int64, whence int) (int64, error) { // fmt.Printf("actual: %v offset: %v (%v) whence: %v\n", rsc.size, offset, rsc.offset, whence) switch whence { case io.SeekStart: rsc.offset = offset case io.SeekCurrent: rsc.offset += offset case io.SeekEnd: rsc.offset = rsc.size + offset
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 21.2K bytes - Click Count (0) -
internal/lock/lock_solaris.go
default: return nil, &os.PathError{ Op: "open", Path: path, Err: syscall.EINVAL, } } lock := syscall.Flock_t{ Start: 0, Len: 0, Pid: 0, Type: lockType, Whence: 0, } f, err := os.OpenFile(path, flag, perm) if err != nil { return nil, err } if err = syscall.FcntlFlock(f.Fd(), rlockType, &lock); err != nil { f.Close() if err == syscall.EAGAIN {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Jan 02 17:15:06 GMT 2022 - 2.8K bytes - Click Count (0) -
src/archive/tar/tar_test.go
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) -
api/go1.3.txt
pkg syscall (linux-386), type Flock_t struct, Pid int32 pkg syscall (linux-386), type Flock_t struct, Start int64 pkg syscall (linux-386), type Flock_t struct, Type int16 pkg syscall (linux-386), type Flock_t struct, Whence int16 pkg syscall (linux-386-cgo), func FcntlFlock(uintptr, int, *Flock_t) error pkg syscall (linux-386-cgo), func SendmsgN(int, []uint8, []uint8, Sockaddr, int) (int, error) pkg syscall (linux-386-cgo), type Flock_t struct
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Mon Jun 02 02:45:00 GMT 2014 - 117K bytes - Click Count (0) -
api/go1.2.txt
pkg syscall (freebsd-386-cgo), type Flock_t struct, Sysid int32 pkg syscall (freebsd-386-cgo), type Flock_t struct, Type int16 pkg syscall (freebsd-386-cgo), type Flock_t struct, Whence int16 pkg syscall (freebsd-386-cgo), type Fsid struct pkg syscall (freebsd-386-cgo), type Fsid struct, Val [2]int32 pkg syscall (freebsd-386-cgo), type ICMPv6Filter struct
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Oct 18 04:36:59 GMT 2013 - 1.9M bytes - Click Count (1) -
api/go1.13.txt
pkg syscall (netbsd-arm64-cgo), type Flock_t struct, Start int64 pkg syscall (netbsd-arm64-cgo), type Flock_t struct, Type int16 pkg syscall (netbsd-arm64-cgo), type Flock_t struct, Whence int16 pkg syscall (netbsd-arm64-cgo), type Fsid struct pkg syscall (netbsd-arm64-cgo), type Fsid struct, X__fsid_val [2]int32 pkg syscall (netbsd-arm64-cgo), type ICMPv6Filter struct
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Aug 08 18:44:16 GMT 2019 - 452.6K bytes - Click Count (0) -
api/go1.14.txt
pkg syscall (freebsd-arm64), type Flock_t struct, Sysid int32 pkg syscall (freebsd-arm64), type Flock_t struct, Type int16 pkg syscall (freebsd-arm64), type Flock_t struct, Whence int16 pkg syscall (freebsd-arm64), type Fsid struct pkg syscall (freebsd-arm64), type Fsid struct, Val [2]int32 pkg syscall (freebsd-arm64), type ICMPv6Filter struct
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Feb 17 20:31:46 GMT 2023 - 508.9K bytes - Click Count (0) -
api/go1.txt
pkg syscall (darwin-386), type Flock_t struct, Pid int32 pkg syscall (darwin-386), type Flock_t struct, Start int64 pkg syscall (darwin-386), type Flock_t struct, Type int16 pkg syscall (darwin-386), type Flock_t struct, Whence int16 pkg syscall (darwin-386), type Fsid struct pkg syscall (darwin-386), type Fsid struct, Val [2]int32 pkg syscall (darwin-386), type Fstore_t struct pkg syscall (darwin-386), type Fstore_t struct, Bytesalloc int64
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Aug 14 18:58:28 GMT 2013 - 1.7M bytes - Click Count (0)