Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 989 for whence (2.64 sec)

  1. 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
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  2. 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 {
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  3. docs/pt/docs/help-fastapi.md

    ### Peça para encerrar { #ask-to-close }
    
    Se a pessoa responder, há uma grande chance de você ter resolvido o problema, parabéns, **você é um(a) herói(na)**! 🦸
    
    * Agora, se isso resolveu o problema, você pode pedir para:
    
        * No GitHub Discussions: marcar o comentário como a **resposta**.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

             * Breaking AtomicReferenceFieldUpdater not only forces AggregateFutureState to fall back to
             * another implementation but also forces AbstractFutureState to be able to do the
             * same—hence the try-catch here.
             *
             * (Really, we're fortunate that breaking AtomicReferenceFieldUpdater doesn't break _even
             * more_ things.)
             */
            helper = new SynchronizedHelper();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingRequest.java

         * the model builder operate in project mode. This mode is meant for effective models that are employed during the
         * build process of a local project. Hence, the effective model will support the notion of a project directory. To
         * build the model for a POM from the repository, use {@link #setModelSource(ModelSource)} in combination with a
         * {@link FileModelSource} instead.
         *
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 05 11:52:05 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  6. internal/ioutil/ioutil.go

    			// the end, this is performed by the caller before
    			// closing 'w'.
    			if err = disk.DisableDirectIO(file); err != nil {
    				return written, err
    			}
    
    			// buf is not aligned, hence use writeUnaligned()
    			// for the remainder
    			un, err = w.Write(buf[len(buf)-remain:])
    			nw += int64(un)
    		}
    
    		if nw > 0 {
    			written += nw
    		}
    
    		if err != nil {
    			return written, err
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  7. CONTRIBUTING.md

    ### Copyright and License
    
    When updating/modifying a file, please do not make changes to the copyright header.
    
    When creating a new file, please make sure to add a header as defined below.
    
    #### Required Files for Copyright Headers:
    
    - Source code files (e.g., `.java`, `.kt`, `.groovy`).
    - Documentation files, where applicable (e.g., `.adoc`, `.md`).
    
    #### Exempt Files for Copyright Headers:
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Nov 25 06:57:22 UTC 2025
    - 19K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/query-params-str-validations.md

    ```Python
    q: str | None = Query(default=None, max_length=50)
    ```
    
    This will validate the data, show a clear error when the data is not valid, and document the parameter in the OpenAPI schema *path operation*.
    
    ### `Query` as the default value or in `Annotated` { #query-as-the-default-value-or-in-annotated }
    
    Keep in mind that when using `Query` inside of `Annotated` you cannot use the `default` parameter for `Query`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  9. tests/upsert_test.go

    	var user1, user2, user3, user4, user5, user6 User
    	if err := DB.Where(&User{Name: "find or init", Age: 33}).FirstOrInit(&user1).Error; err != nil {
    		t.Errorf("no error should happen when FirstOrInit, but got %v", err)
    	}
    
    	if user1.Name != "find or init" || user1.ID != 0 || user1.Age != 33 {
    		t.Errorf("user should be initialized with search value")
    	}
    
    	DB.Where(User{Name: "find or init", Age: 33}).FirstOrInit(&user2)
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Tue Jul 29 11:06:13 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/Project.java

         * </p>
         * <p>
         * This behavior maintains the Maven 3.x semantic where resource {@code targetPath} elements
         * are resolved relative to the appropriate output directory ({@code project.build.outputDirectory}
         * or {@code project.build.testOutputDirectory}), <strong>not</strong> the project base directory.
         * </p>
         * <p>
         * In Maven 3, when a resource configuration specifies:
         * </p>
         * <pre>{@code
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Nov 07 13:11:07 UTC 2025
    - 15.3K bytes
    - Viewed (0)
Back to top