Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for off (0.15 sec)

  1. src/cmd/cgo/gcc.go

    			// structs are in system headers that cannot be corrected.
    			continue
    		}
    
    		// Round off up to talign, assumed to be a power of 2.
    		off = (off + talign - 1) &^ (talign - 1)
    
    		if f.ByteOffset > off {
    			fld, sizes = c.pad(fld, sizes, f.ByteOffset-off)
    			off = f.ByteOffset
    		}
    		if f.ByteOffset < off {
    			// Drop a packed field that we can't represent.
    			continue
    		}
    
    		n := len(fld)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  2. src/bytes/reader.go

    	return
    }
    
    // ReadAt implements the [io.ReaderAt] interface.
    func (r *Reader) ReadAt(b []byte, off int64) (n int, err error) {
    	// cannot modify state - see io.ReaderAt
    	if off < 0 {
    		return 0, errors.New("bytes.Reader.ReadAt: negative offset")
    	}
    	if off >= int64(len(r.s)) {
    		return 0, io.EOF
    	}
    	n = copy(b, r.s[off:])
    	if n < len(b) {
    		err = io.EOF
    	}
    	return
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 3.9K bytes
    - Viewed (1)
  3. misc/linkcheck/linkcheck.go

    	if res.StatusCode/100 == 3 {
    		newURL, err := res.Location()
    		if err != nil {
    			return fmt.Errorf("resolving redirect: %v", err)
    		}
    		if !strings.HasPrefix(newURL.String(), *root) {
    			// Skip off-site redirects.
    			return nil
    		}
    		crawl(newURL.String(), url)
    		return nil
    	}
    	if res.StatusCode != 200 {
    		return errors.New(res.Status)
    	}
    	slurp, err := io.ReadAll(res.Body)
    	res.Body.Close()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 06 15:53:04 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  4. api/go1.12.txt

    pkg syscall (freebsd-386), func Mknod(string, uint32, uint64) error
    pkg syscall (freebsd-386), type Dirent struct, Fileno uint64
    pkg syscall (freebsd-386), type Dirent struct, Namlen uint16
    pkg syscall (freebsd-386), type Dirent struct, Off int64
    pkg syscall (freebsd-386), type Dirent struct, Pad0 uint8
    pkg syscall (freebsd-386), type Dirent struct, Pad1 uint16
    pkg syscall (freebsd-386), type Stat_t struct, Atim_ext int32
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Jan 02 21:21:53 GMT 2019
    - 13.5K bytes
    - Viewed (0)
  5. src/archive/tar/strconv.go

    	}
    	return strings.TrimRight(fmt.Sprintf("%s%d.%09d", sign, secs, nsecs), "0")
    }
    
    // parsePAXRecord parses the input PAX record string into a key-value pair.
    // If parsing is successful, it will slice off the currently read record and
    // return the remainder as r.
    func parsePAXRecord(s string) (k, v, r string, err error) {
    	// The size field ends at the first space.
    	nStr, rest, ok := strings.Cut(s, " ")
    	if !ok {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  6. src/bytes/bytes_test.go

    	if len(bmbuf) < maxSize {
    		bmbuf = make([]byte, maxSize)
    	}
    
    	for _, n := range sizes {
    		for _, off := range []int{0, 1, 4, 7} {
    			buf1 := bmbuf[off : off+n]
    			buf2Start := (len(bmbuf) / 2) + off
    			buf2 := bmbuf[buf2Start : buf2Start+n]
    			buf1[n-1] = 'x'
    			buf2[n-1] = 'x'
    			b.Run(fmt.Sprint(n, off), func(b *testing.B) {
    				b.SetBytes(int64(n))
    				for i := 0; i < b.N; i++ {
    					eq := Equal(buf1, buf2)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  7. src/bytes/bytes.go

    // TrimLeftFunc treats s as UTF-8-encoded bytes and returns a subslice of s by slicing off
    // all leading UTF-8-encoded code points c that satisfy f(c).
    func TrimLeftFunc(s []byte, f func(r rune) bool) []byte {
    	i := indexFunc(s, f, false)
    	if i == -1 {
    		return nil
    	}
    	return s[i:]
    }
    
    // TrimRightFunc returns a subslice of s by slicing off all trailing
    // UTF-8-encoded code points c that satisfy f(c).
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg debug/elf, type Rel32 struct, Off uint32
    pkg debug/elf, type Rel64 struct
    pkg debug/elf, type Rel64 struct, Info uint64
    pkg debug/elf, type Rel64 struct, Off uint64
    pkg debug/elf, type Rela32 struct
    pkg debug/elf, type Rela32 struct, Addend int32
    pkg debug/elf, type Rela32 struct, Info uint32
    pkg debug/elf, type Rela32 struct, Off uint32
    pkg debug/elf, type Rela64 struct
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (2)
  9. api/go1.14.txt

    pkg syscall (freebsd-arm64), const IP_RSVP_OFF = 16
    pkg syscall (freebsd-arm64), const IP_RSVP_OFF ideal-int
    pkg syscall (freebsd-arm64), const IP_RSVP_ON = 15
    pkg syscall (freebsd-arm64), const IP_RSVP_ON ideal-int
    pkg syscall (freebsd-arm64), const IP_RSVP_VIF_OFF = 18
    pkg syscall (freebsd-arm64), const IP_RSVP_VIF_OFF ideal-int
    pkg syscall (freebsd-arm64), const IP_RSVP_VIF_ON = 17
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 508.9K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/parse.go

    			}
    			count = int16((x & 31) << 7)
    		}
    	default:
    		p.errorf("unexpected %s in register shift", tok.String())
    	}
    	if p.arch.Family == sys.ARM64 {
    		off, err := arch.ARM64RegisterShift(r1, op, count)
    		if err != nil {
    			p.errorf(err.Error())
    		}
    		return off
    	} else {
    		return int64((r1 & 15) | op<<5 | count)
    	}
    }
    
    // registerExtension parses a register with extension or arrangement.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
Back to top