Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 166 for newoff (0.35 sec)

  1. src/internal/coverage/slicewriter/slicewriter.go

    		return offset, nil
    	case io.SeekCurrent:
    		newoff := sws.off + offset
    		if newoff != sws.off && (newoff < 0 || newoff > int64(len(sws.payload))) {
    			return 0, fmt.Errorf("invalid seek: new offset %d (out of range [0 %d]", newoff, len(sws.payload))
    		}
    		sws.off += offset
    		return sws.off, nil
    	case io.SeekEnd:
    		newoff := int64(len(sws.payload)) + offset
    		if newoff != sws.off && (newoff < 0 || newoff > int64(len(sws.payload))) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 26 12:44:26 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/net/dns/dnsmessage/message.go

    }
    
    func (h *header) unpack(msg []byte, off int) (int, error) {
    	newOff := off
    	var err error
    	if h.id, newOff, err = unpackUint16(msg, newOff); err != nil {
    		return off, &nestedError{"id", err}
    	}
    	if h.bits, newOff, err = unpackUint16(msg, newOff); err != nil {
    		return off, &nestedError{"bits", err}
    	}
    	if h.questions, newOff, err = unpackUint16(msg, newOff); err != nil {
    		return off, &nestedError{"questions", err}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 69K bytes
    - Viewed (0)
  3. src/internal/coverage/slicereader/slicereader.go

    		}
    		r.off = offset
    		return offset, nil
    	case io.SeekCurrent:
    		newoff := r.off + offset
    		if newoff < 0 || newoff > int64(len(r.b)) {
    			return 0, fmt.Errorf("invalid seek: new offset %d (out of range [0 %d]", newoff, len(r.b))
    		}
    		r.off = newoff
    		return r.off, nil
    	case io.SeekEnd:
    		newoff := int64(len(r.b)) + 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)
  4. src/cmd/compile/internal/ssa/op.go

    	return ValAndOff(int64(val)<<32 + int64(uint32(off)))
    }
    
    func (x ValAndOff) canAdd32(off int32) bool {
    	newoff := x.Off64() + int64(off)
    	return newoff == int64(int32(newoff))
    }
    func (x ValAndOff) canAdd64(off int64) bool {
    	newoff := x.Off64() + off
    	return newoff == int64(int32(newoff))
    }
    
    func (x ValAndOff) addOffset32(off int32) ValAndOff {
    	if !x.canAdd32(off) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 15:29:10 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  5. pkg/registry/core/configmap/strategy.go

    }
    
    func (strategy) PrepareForUpdate(ctx context.Context, newObj, oldObj runtime.Object) {
    	oldConfigMap := oldObj.(*api.ConfigMap)
    	newConfigMap := newObj.(*api.ConfigMap)
    	dropDisabledFields(newConfigMap, oldConfigMap)
    }
    
    func (strategy) ValidateUpdate(ctx context.Context, newObj, oldObj runtime.Object) field.ErrorList {
    	oldCfg, newCfg := oldObj.(*api.ConfigMap), newObj.(*api.ConfigMap)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 20:38:11 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. cmd/erasure-decode.go

    	newBuf := dst
    	if len(dst) != len(p.readers) {
    		newBuf = make([][]byte, len(p.readers))
    	} else {
    		for i := range newBuf {
    			newBuf[i] = newBuf[i][:0]
    		}
    	}
    	var newBufLK sync.RWMutex
    
    	if p.offset+p.shardSize > p.shardFileSize {
    		p.shardSize = p.shardFileSize - p.offset
    	}
    	if p.shardSize == 0 {
    		return newBuf, nil
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 21 14:36:21 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. src/crypto/cipher/cfb.go

    // size.
    func NewCFBEncrypter(block Block, iv []byte) Stream {
    	return newCFB(block, iv, false)
    }
    
    // NewCFBDecrypter returns a [Stream] which decrypts with cipher feedback mode,
    // using the given [Block]. The iv must be the same length as the [Block]'s block
    // size.
    func NewCFBDecrypter(block Block, iv []byte) Stream {
    	return newCFB(block, iv, true)
    }
    
    func newCFB(block Block, iv []byte, decrypt bool) Stream {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/runtime/allocator_test.go

    	}
    
    	for i := initialSize; i > 0; i = i / 10 {
    		newBuff := target.Allocate(uint64(i))
    		if cap(newBuff) < initialSize {
    			t.Fatalf("allocator is now allowed to shrink memory")
    		}
    		if len(newBuff) != i {
    			t.Fatalf("unexpected length of the buffer, expected: %v, got: %v", i, len(newBuff))
    		}
    	}
    }
    
    func TestAllocatorZero(t *testing.T) {
    	target := &Allocator{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 23 13:38:29 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  9. src/crypto/cipher/ofb.go

    	cipher  []byte
    	out     []byte
    	outUsed int
    }
    
    // NewOFB returns a [Stream] that encrypts or decrypts using the block cipher b
    // in output feedback mode. The initialization vector iv's length must be equal
    // to b's block size.
    func NewOFB(b Block, iv []byte) Stream {
    	blockSize := b.BlockSize()
    	if len(iv) != blockSize {
    		panic("cipher.NewOFB: IV length must equal block size")
    	}
    	bufSize := streamBufferSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. pkg/controller/garbagecollector/graph_builder.go

    		isUnblocked := c.newRef.BlockOwnerDeletion == nil || (c.newRef.BlockOwnerDeletion != nil && !*c.newRef.BlockOwnerDeletion)
    		if wasBlocked && isUnblocked {
    			node, found := gb.uidToNode.Read(c.newRef.UID)
    			if !found {
    				logger.V(5).Info("cannot find uid in uidToNode", "uid", c.newRef.UID)
    				continue
    			}
    			gb.attemptToDelete.Add(node)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.9K bytes
    - Viewed (0)
Back to top