- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 136 for lseek (0.07 sec)
-
src/net/sendfile_unix_alt.go
// of the file -- if you pass it offset 0, it starts from // offset 0. There's no way to tell it "start from current // position", so we have to manage that explicitly. pos, err := f.Seek(0, io.SeekCurrent) if err != nil { return 0, err, false } sc, err := f.SyscallConn() if err != nil { return 0, nil, false } var werr error err = sc.Read(func(fd uintptr) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 2.3K bytes - Viewed (0) -
docs/en/docs/reference/uploadfile.md
options: members: - file - filename - size - headers - content_type - read - write - seek
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 472 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/rule.go
case flowcontrol.SubjectKindGroup: if subject.Group == nil { return false } seek := subject.Group.Name if seek == "*" { return true } for _, userGroup := range user.GetGroups() { if userGroup == seek { return true } } return false case flowcontrol.SubjectKindServiceAccount: if subject.ServiceAccount == nil { return false
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 6.3K bytes - Viewed (0) -
docs/de/docs/reference/uploadfile.md
options: members: - file - filename - size - headers - content_type - read - write - seek
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 18:17:09 UTC 2024 - 495 bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/LockInfoAccess.java
public LockInfo readLockInfo(RandomAccessFile lockFileAccess) throws IOException { if (lockFileAccess.length() <= infoRegionPos) { return new LockInfo(); } else { lockFileAccess.seek(infoRegionPos); DataInputStream inputStream = new DataInputStream(new BufferedInputStream(new RandomAccessFileInputStream(lockFileAccess))); byte protocolVersion = inputStream.readByte();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 3.4K bytes - Viewed (0) -
src/go/internal/gccgoimporter/ar.go
// what gccgo does; gccgo concatenates together all the export data // for all the objects in the file. In practice that case does not arise. func arExportData(archive io.ReadSeeker) (io.ReadSeeker, error) { if _, err := archive.Seek(0, io.SeekStart); err != nil { return nil, err } var buf [len(armag)]byte if _, err := archive.Read(buf[:]); err != nil { return nil, err } switch string(buf[:]) { case armag:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 14:14:36 UTC 2022 - 4.4K bytes - Viewed (0) -
src/syscall/syscall_unix_test.go
} } } } } func TestSeekFailure(t *testing.T) { _, err := syscall.Seek(-1, 0, io.SeekStart) if err == nil { t.Fatalf("Seek(-1, 0, 0) did not fail") } str := err.Error() // used to crash on Linux t.Logf("Seek: %v", str) if str == "" { t.Fatalf("Seek(-1, 0, 0) return error with empty message") } } func TestSetsockoptString(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 29 16:24:51 UTC 2022 - 9.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go
//go:build linux && gc && 386 package unix import "syscall" // Underlying system call writes to newoffset via pointer. // Implemented in assembly to avoid allocation. func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 585 bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/LockStateAccess.java
dataOutput.flush(); lockFileAccess.seek(REGION_START); lockFileAccess.write(outstr.toByteArray()); assert lockFileAccess.getFilePointer() == stateRegionSize; } public LockState readState(RandomAccessFile lockFileAccess) throws IOException { try { byte[] buffer = new byte[stateRegionSize]; lockFileAccess.seek(REGION_START); int readPos = 0;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 4K bytes - Viewed (0) -
src/internal/coverage/encodecounter/encode.go
} func (cfw *CoverageDataWriter) patchSegmentHeader(ws *slicewriter.WriteSeeker) error { // record position off, err := ws.Seek(0, io.SeekCurrent) if err != nil { return fmt.Errorf("error seeking in patchSegmentHeader: %v", err) } // seek back to start so that we can update the segment header if _, err := ws.Seek(0, io.SeekStart); err != nil { return fmt.Errorf("error seeking in patchSegmentHeader: %v", err) } if cfw.debug {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.8K bytes - Viewed (0)