Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for allBytes (0.13 sec)

  1. src/cmd/go/internal/lockedfile/internal/filelock/filelock_windows.go

    	err := windows.LockFileEx(syscall.Handle(f.Fd()), uint32(lt), reserved, allBytes, allBytes, ol)
    	if err != nil {
    		return &fs.PathError{
    			Op:   lt.String(),
    			Path: f.Name(),
    			Err:  err,
    		}
    	}
    	return nil
    }
    
    func unlock(f File) error {
    	ol := new(syscall.Overlapped)
    	err := windows.UnlockFileEx(syscall.Handle(f.Fd()), reserved, allBytes, allBytes, ol)
    	if err != nil {
    		return &fs.PathError{
    			Op:   "Unlock",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. src/strings/replace_test.go

    		testCase{foo4, "", ""},
    	)
    
    	// genAll maps "\x00\x01\x02...\xfe\xff" to "[all]", amongst other things.
    	allBytes := make([]byte, 256)
    	for i := range allBytes {
    		allBytes[i] = byte(i)
    	}
    	allString := string(allBytes)
    	genAll := NewReplacer(
    		allString, "[all]",
    		"\xff", "[ff]",
    		"\x00", "[00]",
    	)
    	testCases = append(testCases,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 22:53:05 UTC 2017
    - 14.1K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/config.go

    	if err != nil {
    		return err
    	}
    
    	allBytes := [][]byte{initialConfig}
    	for _, componentConfig := range componentConfigs {
    		cfgBytes, err := getDefaultComponentConfigBytes(componentConfig)
    		if err != nil {
    			return err
    		}
    		allBytes = append(allBytes, cfgBytes)
    	}
    
    	fmt.Fprint(out, string(bytes.Join(allBytes, []byte(constants.YAMLDocumentSeparator))))
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. operator/pkg/util/reflect_test.go

    	for _, tt := range tests {
    		var got []any
    		for _, v := range allTypes {
    			if tt.function(reflect.ValueOf(v).Kind()) {
    				got = append(got, v)
    			}
    		}
    		if !reflect.DeepEqual(got, tt.want) {
    			t.Errorf("%s: got %v, want %v", tt.desc, got, tt.want)
    		}
    	}
    }
    
    func TestToIntValue(t *testing.T) {
    	var got []int
    	for _, v := range allTypes {
    		if i, ok := ToIntValue(v); ok {
    			got = append(got, i)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 10.2K bytes
    - Viewed (0)
  5. pkg/controlplane/reconcilers/reconcilers.go

    	// NoneEndpointReconcilerType will turn off the endpoint reconciler
    	NoneEndpointReconcilerType Type = "none"
    )
    
    // Types an array of reconciler types
    type Types []Type
    
    // AllTypes export all reconcilers
    var AllTypes = Types{
    	MasterCountReconcilerType,
    	LeaseEndpointReconcilerType,
    	NoneEndpointReconcilerType,
    }
    
    // Names returns a slice of all the reconciler names
    func (t Types) Names() []string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 26 13:49:31 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/binding/DefaultStructBindingsStore.java

            if (allTypes.size() == 0) {
                throw new IllegalArgumentException("No types given");
            }
            if (allTypes.size() == 1) {
                return allTypes;
            }
    
            Set<ModelType<?>> typesToCheck = Sets.newLinkedHashSet(allTypes);
            Set<ModelType<?>> convergingTypes = Sets.newLinkedHashSet(allTypes);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 29.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/cel/types.go

    }
    
    func allTypesForDecl(declTypes []*DeclType) map[string]*DeclType {
    	if declTypes == nil {
    		return nil
    	}
    	allTypes := map[string]*DeclType{}
    	for _, declType := range declTypes {
    		for k, t := range FieldTypeMap(declType.TypeName(), declType) {
    			allTypes[k] = t
    		}
    	}
    
    	return allTypes
    }
    
    // NewDeclTypeProvider returns an Open API Schema-based type-system which is CEL compatible.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 15:52:31 UTC 2023
    - 18K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/windows/security_windows.go

    	if err != nil {
    		return
    	}
    	defer LocalFree(Handle(unsafe.Pointer(winHeapACL)))
    	aclBytes := make([]byte, winHeapACL.aclSize)
    	copy(aclBytes, (*[(1 << 31) - 1]byte)(unsafe.Pointer(winHeapACL))[:len(aclBytes):len(aclBytes)])
    	return (*ACL)(unsafe.Pointer(&aclBytes[0])), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  9. cmd/kube-apiserver/app/options/options.go

    		"If true, allow privileged containers. [default=false]")
    
    	fs.StringVar(&s.EndpointReconcilerType, "endpoint-reconciler-type", s.EndpointReconcilerType,
    		"Use an endpoint reconciler ("+strings.Join(reconcilers.AllTypes.Names(), ", ")+") master-count is deprecated, and will be removed in a future version.")
    
    	// See #14282 for details on how to test/try this option out.
    	// TODO: remove this comment once this option is tested in CI.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 12:19:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/reflect/TypeToken.java

      }
    
      private final class InterfaceSet extends TypeSet {
    
        private final transient TypeSet allTypes;
        @CheckForNull private transient ImmutableSet<TypeToken<? super T>> interfaces;
    
        InterfaceSet(TypeSet allTypes) {
          this.allTypes = allTypes;
        }
    
        @Override
        protected Set<TypeToken<? super T>> delegate() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 26 21:02:13 UTC 2023
    - 53.6K bytes
    - Viewed (0)
Back to top