Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 261 for offset_ (2.82 sec)

  1. src/debug/elf/reader.go

    	var newOffset int64
    	switch whence {
    	case io.SeekStart:
    		newOffset = offset
    	case io.SeekCurrent:
    		newOffset = r.offset + offset
    	case io.SeekEnd:
    		newOffset = r.size + offset
    	default:
    		return 0, os.ErrInvalid
    	}
    
    	switch {
    	case newOffset == r.offset:
    		return newOffset, nil
    
    	case newOffset < 0, newOffset > r.size:
    		return 0, os.ErrInvalid
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:06:17 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go

    //sys	utimes(path string, times *[2]Timeval) (err error)
    
    func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
    	_, _, e1 := Syscall6(SYS_FADVISE64_64, uintptr(fd), uintptr(advice), uintptr(offset>>32), uintptr(offset), uintptr(length>>32), uintptr(length))
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func seek(fd int, offset int64, whence int) (int64, syscall.Errno) {
    	var newoffset int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  3. cmd/erasure-utils.go

    	for _, block := range enBlocks[:dataBlocks] {
    		// Skip blocks until we have reached our offset.
    		if offset >= int64(len(block)) {
    			// Decrement offset.
    			offset -= int64(len(block))
    			continue
    		}
    
    		// Skip until offset.
    		block = block[offset:]
    
    		// Reset the offset for next iteration to read everything
    		// from subsequent blocks.
    		offset = 0
    
    		// We have written all the blocks, write the last remaining block.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.go

    	nn := len(p)
    	if h.offset > 0 {
    		n := copy(h.buffer[h.offset:], p)
    		if h.offset+n < TagSize {
    			h.offset += n
    			return nn, nil
    		}
    		p = p[n:]
    		h.offset = 0
    		update(&h.macState, h.buffer[:])
    	}
    	if n := len(p) - (len(p) % TagSize); n > 0 {
    		update(&h.macState, p[:n])
    		p = p[n:]
    	}
    	if len(p) > 0 {
    		h.offset += copy(h.buffer[h.offset:], p)
    	}
    	return nn, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.go

    	nn := len(p)
    	if h.offset > 0 {
    		n := copy(h.buffer[h.offset:], p)
    		if h.offset+n < TagSize {
    			h.offset += n
    			return nn, nil
    		}
    		p = p[n:]
    		h.offset = 0
    		update(&h.macState, h.buffer[:])
    	}
    	if n := len(p) - (len(p) % TagSize); n > 0 {
    		update(&h.macState, p[:n])
    		p = p[n:]
    	}
    	if len(p) > 0 {
    		h.offset += copy(h.buffer[h.offset:], p)
    	}
    	return nn, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  6. src/testing/fstest/mapfs.go

    	f.offset += int64(n)
    	return n, nil
    }
    
    func (f *openMapFile) Seek(offset int64, whence int) (int64, error) {
    	switch whence {
    	case 0:
    		// offset += 0
    	case 1:
    		offset += f.offset
    	case 2:
    		offset += int64(len(f.f.Data))
    	}
    	if offset < 0 || offset > int64(len(f.f.Data)) {
    		return 0, &fs.PathError{Op: "seek", Path: f.path, Err: fs.ErrInvalid}
    	}
    	f.offset = offset
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. src/go/types/sizes_test.go

    			// Make a copy manually :(
    			for i := 0; i < ts.NumFields(); i++ {
    				fields = append(fields, ts.Field(i))
    			}
    
    			offsets := conf.Sizes.Offsetsof(fields)
    			if offsets[0] != want[0] || offsets[1] != want[1] || offsets[2] != want[2] {
    				t.Errorf("OffsetsOf(%v) = %v want %v", ts, offsets, want)
    			}
    		})
    	}
    }
    
    type gcSizeTest struct {
    	name string
    	src  string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 21:00:48 UTC 2023
    - 4K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/text/unicode/norm/trie.go

    // is a list of ranges with an accompanying value. Given a matching range r,
    // the value for b is by r.value + (b - r.lo) * stride.
    func (t *sparseBlocks) lookup(n uint32, b byte) uint16 {
    	offset := t.offset[n]
    	header := t.values[offset]
    	lo := offset + 1
    	hi := lo + uint16(header.lo)
    	for lo < hi {
    		m := lo + (hi-lo)/2
    		r := t.values[m]
    		if r.lo <= b && b <= r.hi {
    			return r.value + uint16(b-r.lo)*header.value
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. pkg/registry/core/service/portallocator/allocator.go

    	const (
    		min  = 16
    		max  = 128
    		step = 32
    	)
    
    	rangeSize := pr.Size
    	// offset should always be smaller than the range size
    	if rangeSize <= min {
    		return 0
    	}
    
    	offset := rangeSize / step
    	if offset < min {
    		return min
    	}
    	if offset > max {
    		return max
    	}
    	return int(offset)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java

        this.elementSet = elementSet;
        this.cumulativeCounts = cumulativeCounts;
        this.offset = offset;
        this.length = length;
      }
    
      private int getCount(int index) {
        return (int) (cumulativeCounts[offset + index + 1] - cumulativeCounts[offset + index]);
      }
    
      @Override
      Entry<E> getEntry(int index) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top