Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 460 for xoffset (0.15 sec)

  1. 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)
  2. src/debug/dwarf/typeunit.go

    	return &typeUnitReader{
    		d:  tur.d,
    		tu: tur.tu,
    		b:  makeBuf(tur.d, tur.tu, tur.tu.name, tur.tu.off, tur.tu.data),
    	}
    }
    
    // offset returns the current offset.
    func (tur *typeUnitReader) offset() Offset {
    	return tur.b.off
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. src/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: Tue Oct 10 16:32:44 UTC 2023
    - 1.2K 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/debug/dwarf/unit.go

    	"strconv"
    )
    
    // DWARF debug info is split into a sequence of compilation units.
    // Each unit has its own abbreviation table and address size.
    
    type unit struct {
    	base   Offset // byte offset of header within the aggregate info
    	off    Offset // byte offset of data within the aggregate info
    	data   []byte
    	atable abbrevTable
    	asize  int
    	vers   int
    	utype  uint8 // DWARF 5 unit type
    	is64   bool  // True for 64-bit DWARF format
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 21 17:14:08 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  6. 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)
  7. src/internal/coverage/slicereader/slicereader.go

    	return amt, nil
    }
    
    func (r *Reader) Seek(offset int64, whence int) (ret int64, err error) {
    	switch whence {
    	case io.SeekStart:
    		if offset < 0 || offset > int64(len(r.b)) {
    			return 0, fmt.Errorf("invalid seek: new offset %d (out of range [0 %d]", offset, len(r.b))
    		}
    		r.off = offset
    		return offset, nil
    	case io.SeekCurrent:
    		newoff := r.off + offset
    		if newoff < 0 || newoff > int64(len(r.b)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:28 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.go

    	macState
    
    	buffer [16 * TagSize]byte // size must be a multiple of block size (16)
    	offset int
    }
    
    func (h *mac) Write(p []byte) (int, error) {
    	nn := len(p)
    	if h.offset > 0 {
    		n := copy(h.buffer[h.offset:], p)
    		if h.offset+n < len(h.buffer) {
    			h.offset += n
    			return nn, nil
    		}
    		p = p[n:]
    		h.offset = 0
    		if cpu.S390X.HasVX {
    			updateVX(&h.macState, h.buffer[:])
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top