Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 344 for lseek (0.12 sec)

  1. src/internal/coverage/test/roundtrip_test.go

    			}
    			fileView = make([]byte, fi.Size())
    			if _, err := inf.Read(fileView); err != nil {
    				t.Fatalf("read() on meta-file: %v", err)
    			}
    			if _, err := inf.Seek(int64(0), io.SeekStart); err != nil {
    				t.Fatalf("seek() on meta-file: %v", err)
    			}
    		}
    
    		mfr, err := decodemeta.NewCoverageMetaFileReader(inf, fileView)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 21:42:05 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. fastapi/datastructures.py

            To be awaitable, compatible with async, this is run in threadpool.
            """
            return await super().read(size)
    
        async def seek(
            self,
            offset: Annotated[
                int,
                Doc(
                    """
                    The position in bytes to seek to in the file.
                    """
                ),
            ],
        ) -> None:
            """
            Move to a position in the file.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. src/io/example_test.go

    	// Output:
    	// 17
    }
    
    func ExampleSeeker_Seek() {
    	r := strings.NewReader("some io.Reader stream to be read\n")
    
    	r.Seek(5, io.SeekStart) // move to the 5th char from the start
    	if _, err := io.Copy(os.Stdout, r); err != nil {
    		log.Fatal(err)
    	}
    
    	r.Seek(-5, io.SeekEnd)
    	if _, err := io.Copy(os.Stdout, r); err != nil {
    		log.Fatal(err)
    	}
    
    	// Output:
    	// io.Reader stream to be read
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:32 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  4. src/internal/xcoff/ar.go

    	case AIAMAG:
    		return nil, fmt.Errorf("small AIX archive not supported")
    	default:
    		return nil, fmt.Errorf("unrecognised archive magic: 0x%x", magic)
    	}
    
    	var fhdr bigarFileHeader
    	if _, err := sr.Seek(0, io.SeekStart); err != nil {
    		return nil, err
    	}
    	if err := binary.Read(sr, binary.BigEndian, &fhdr); err != nil {
    		return nil, err
    	}
    
    	off, err := parseDecimalBytes(fhdr.Flfstmoff[:])
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:32:51 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. LICENSES/vendor/github.com/google/cadvisor/third_party/containerd/NOTICE

    It is your responsibility to ensure that your use and/or transfer does not
    violate applicable laws.
    
    For more information, please see https://www.bis.doc.gov
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 03 16:47:06 UTC 2022
    - 519 bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top