Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 106 for Spence (0.2 sec)

  1. 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 {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/execution/ExecutionListener.java

     */
    package org.apache.maven.execution;
    
    /**
     * Defines events that Maven fires during a build. <strong>Warning:</strong> This interface might be extended in future
     * Maven versions to support further events. Hence it is strongly recommended to derive custom listeners from
     * {@link AbstractExecutionListener} in order to avoid interoperability problems.
     *
     */
    public interface ExecutionListener {
    
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2K bytes
    - Viewed (0)
  3. cmd/dummy-data-generator_test.go

    	if d.idx >= d.length {
    		extraBytes := d.idx - d.length
    		n -= int(extraBytes)
    		if n < 0 {
    			n = 0
    		}
    		err = io.EOF
    	}
    	return
    }
    
    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 {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 4.8K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequestPopulator.java

        /**
         * Copies the values from the given toolchains into the specified execution request. This method will replace any
         * existing values in the execution request that are controlled by the toolchains. Hence, it is expected that this
         * method is called on a new/empty execution request before the caller mutates it to fit its needs.
         *
         * @param request The execution request to populate, must not be {@code null}.
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/Reflection.java

       * 6.7). Unlike {@link Class#getPackage}, this method only parses the class name, without
       * attempting to define the {@link Package} and hence load files.
       */
      public static String getPackageName(Class<?> clazz) {
        return getPackageName(clazz.getName());
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 3.5K bytes
    - Viewed (0)
  6. buildscripts/checkdeps.sh

    	GO_VERSION="1.16"
    	OSX_VERSION="10.8"
    	KNAME=$(uname -s)
    	ARCH=$(uname -m)
    	case "${KNAME}" in
    	SunOS)
    		ARCH=$(isainfo -k)
    		;;
    	esac
    }
    
    ## FIXME:
    ## In OSX, 'readlink -f' option does not exist, hence
    ## we have our own readlink -f behavior here.
    ## Once OSX has the option, below function is good enough.
    ##
    ## readlink() {
    ##     return /bin/readlink -f "$1"
    ## }
    ##
    readlink() {
    	TARGET_FILE=$1
    
    Shell Script
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri May 26 05:07:25 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  7. 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
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Nov 06 22:26:08 GMT 2023
    - 21K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingHelper.java

                    /*
                     * This is purely for backward-compat with 2.x where <extensions> consisting of a single artifact where
                     * loaded into the core and hence available to plugins, in contrast to bigger extensions that were
                     * loaded into a dedicated realm which is invisible to plugins (MNG-2749).
                     */
                    publicArtifacts.addAll(artifacts);
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Wed Jan 10 12:55:54 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  9. 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 {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 2.8K bytes
    - Viewed (0)
  10. 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 {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
Back to top