Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for newPos (0.11 sec)

  1. src/syscall/fs_js.go

    	if err != nil {
    		return 0, err
    	}
    
    	var newPos int64
    	switch whence {
    	case 0:
    		newPos = offset
    	case 1:
    		newPos = f.pos + offset
    	case 2:
    		var st Stat_t
    		if err := Fstat(fd, &st); err != nil {
    			return 0, err
    		}
    		newPos = st.Size + offset
    	default:
    		return 0, errnoErr(EINVAL)
    	}
    
    	if newPos < 0 {
    		return 0, errnoErr(EINVAL)
    	}
    
    	f.seeked = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 11 18:19:17 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/term/terminal.go

    	t.queue(op)
    }
    
    const maxLineLength = 4096
    
    func (t *Terminal) setLine(newLine []rune, newPos int) {
    	if t.echo {
    		t.moveCursorToPos(0)
    		t.writeLine(newLine)
    		for i := len(newLine); i < len(t.line); i++ {
    			t.writeLine(space)
    		}
    		t.moveCursorToPos(newPos)
    	}
    	t.line = newLine
    	t.pos = newPos
    }
    
    func (t *Terminal) advanceCursor(places int) {
    	t.cursorX += places
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 22.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/rulegen.go

    		// block's source position in some cases?
    		newpos := "b.Pos" // default to block's source position
    		if i < len(pos) && pos[i] != "" {
    			// Use the previous control value's source position.
    			newpos = pos[i]
    		}
    
    		// Generate a new control value (or copy an existing value).
    		genControls[i] = genResult0(rr, arch, control, false, false, newpos, nil)
    	}
    	switch outdata.controls {
    	case 0:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  4. pkg/registry/batch/job/strategy.go

    		isJobFailureTargetChanged := batchvalidation.IsConditionTrue(oldJob.Status.Conditions, batch.JobFailureTarget) != batchvalidation.IsConditionTrue(newJob.Status.Conditions, batch.JobFailureTarget)
    		isCompletedIndexesChanged := oldJob.Status.CompletedIndexes != newJob.Status.CompletedIndexes
    		isFailedIndexesChanged := !ptr.Equal(oldJob.Status.FailedIndexes, newJob.Status.FailedIndexes)
    		isActiveChanged := oldJob.Status.Active != newJob.Status.Active
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 16:43:24 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  5. pkg/registry/discovery/endpointslice/strategy_test.go

    			Strategy.PrepareForUpdate(context.TODO(), tc.newEPS, tc.oldEPS)
    			if !apiequality.Semantic.DeepEqual(tc.newEPS, tc.expectedEPS) {
    				t.Errorf("Expected %+v\nGot: %+v", tc.expectedEPS, tc.newEPS)
    			}
    		})
    	}
    }
    
    func Test_dropTopologyOnV1(t *testing.T) {
    	testcases := []struct {
    		name        string
    		v1Request   bool
    		newEPS      *discovery.EndpointSlice
    		originalEPS *discovery.EndpointSlice
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/apis/bootstraptoken/v1/utils_test.go

    	}
    	for _, rt := range tests {
    		t.Run(rt.input, func(t *testing.T) {
    			newbts := &BootstrapTokenString{}
    			err := json.Unmarshal([]byte(rt.input), newbts)
    			if (err != nil) != rt.expectedError {
    				t.Errorf("failed BootstrapTokenString.UnmarshalJSON:\n\texpected error: %t\n\t  actual error: %v", rt.expectedError, err)
    			} else if !reflect.DeepEqual(rt.bts, newbts) {
    				t.Errorf(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 26 15:51:39 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/build/relnote/relnote.go

    			delta := lastLine + 2 - newdoc.Blocks[0].Pos().StartLine
    			for _, b := range newdoc.Blocks {
    				addLines(b, delta)
    			}
    		}
    		// Append non-empty blocks to the result document.
    		for _, b := range newdoc.Blocks {
    			if _, ok := b.(*md.Empty); !ok {
    				doc.Blocks = append(doc.Blocks, b)
    			}
    		}
    		// Merge link references.
    		for key, link := range newdoc.Links {
    			if doc.Links[key] != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/podtopologyspread/plugin_test.go

    		name           string
    		pod            *v1.Pod
    		oldPod, newPod *v1.Pod
    		expectedHint   framework.QueueingHint
    		expectedErr    bool
    	}{
    		{
    			name: "add pod with labels match topologySpreadConstraints selector",
    			pod: st.MakePod().Name("p").Label("foo", "").
    				SpreadConstraint(1, "zone", v1.DoNotSchedule, fooSelector, nil, nil, nil, nil).
    				Obj(),
    			newPod:       st.MakePod().Node("fake-node").Label("foo", "").Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 17 06:30:53 UTC 2023
    - 13K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc

      auto new_op = OpBuilder(op).create<CaseOrIfOp>(
          op.getLoc(), first_branch.getFunctionType().getResults(), new_operands,
          op->getAttrs());
      for (const auto& entry : output_buffer_to_size) {
        (*buffer_to_size)[new_op.getResult(std::get<0>(entry))] = {
            new_op.getResult(std::get<1>(entry)), std::get<2>(entry)};
      }
      op.replaceAllUsesWith(new_op.getResults().take_front(op.getNumResults()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/controller_test.go

    					}
    					for _, newFS := range newFSs {
    						t.Logf("For %s, digesting newFS=%s", trialStep, fcfmt.Fmt(newFS))
    					}
    				}
    				_ = ctlr.lockAndDigestConfigObjects(newPLs, newFSs)
    			}
    			for plName, hr, nCount := cts.popHeldRequest(); hr != nil; plName, hr, nCount = cts.popHeldRequest() {
    				if testDebugLogs {
    					desired := desiredPLNames.Has(plName) || mandPLs[plName] != nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 18.4K bytes
    - Viewed (0)
Back to top