- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 141 for subfield (0.16 sec)
-
src/encoding/gob/debug.go
// Field number 0 is CommonType deb.delta(1) com := deb.common() // Field number 1 is slice of FieldType deb.delta(1) numField := int(deb.uint()) field := make([]*fieldType, numField) for i := 0; i < numField; i++ { field[i] = new(fieldType) deb.delta(1) // field 0 of fieldType: name field[i].Name = deb.string() deb.delta(1) // field 1 of fieldType: id
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 20 09:34:41 UTC 2023 - 18.3K bytes - Viewed (0) -
src/time/tzdata_test.go
// The tx field changes faster as tzdata is updated. // The cache fields are expected to differ. v1 := reflect.ValueOf(ref).Elem() v2 := reflect.ValueOf(sample).Elem() typ := v1.Type() nf := typ.NumField() found := 0 for i := 0; i < nf; i++ { ft := typ.Field(i) if ft.Name != "name" && ft.Name != "zone" { continue } found++ if !equal(t, v1.Field(i), v2.Field(i)) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 18 20:57:35 UTC 2022 - 2.5K bytes - Viewed (0) -
subprojects/core/src/integTest/resources/org/gradle/api/tasks/bundling/v7.tar
./file.txt file contents ./sub/subfile.txt sub file contents...
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 15:52:53 UTC 2024 - 4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/cel/compile_test.go
userDeclType := buildUserType() userType := reflect.TypeOf(authenticationv1.UserInfo{}) if len(userDeclType.Fields) != userType.NumField() { t.Errorf("expected %d fields, got %d", userType.NumField(), len(userDeclType.Fields)) } for i := 0; i < userType.NumField(); i++ { field := userType.Field(i) jsonTagParts := strings.Split(field.Tag.Get("json"), ",") if len(jsonTagParts) < 1 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 7.3K bytes - Viewed (0) -
staging/src/k8s.io/api/networking/v1/types_test.go
// protobuf field numbers are not accidentally reused by other fields. func Test_NetworkPolicyRemovedFieldProtobufNumberReservation(t *testing.T) { obj := reflect.ValueOf(NetworkPolicy{}).Type() for i := 0; i < obj.NumField(); i++ { f := obj.Field(i) protobufSpec := f.Tag.Get("protobuf") if protobufSpec == "" { continue } protobufNum := strings.Split(protobufSpec, ",")[1] if protobufNum == "3" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 18:19:25 UTC 2023 - 1.3K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation_test.go
} } // check that anything other than name and generateName of ObjectMeta in metadata properties is forbidden tt := reflect.TypeOf(metav1.ObjectMeta{}) for i := 0; i < tt.NumField(); i++ { property := tt.Field(i).Name s := &Structural{ Generic: Generic{ Type: "object", }, Properties: map[string]Structural{ property: {}, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 18:20:00 UTC 2024 - 11.6K bytes - Viewed (0) -
src/internal/buildcfg/exp.go
// and overridden at build time. if goexp != "" { // Create a map of known experiment names. names := make(map[string]func(bool)) rv := reflect.ValueOf(&flags.Flags).Elem() rt := rv.Type() for i := 0; i < rt.NumField(); i++ { field := rv.Field(i) names[strings.ToLower(rt.Field(i).Name)] = field.SetBool } // "regabi" is an alias for all working regabi // subexperiments, and not an experiment itself. Doing
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:38:52 UTC 2024 - 5.5K bytes - Viewed (0) -
src/runtime/time_test.go
// (meaning those two must have the same layout). runtimeTimeTimer := reflect.TypeOf(runtime.TimeTimer{}) check := func(name string, typ reflect.Type) { n1 := runtimeTimeTimer.NumField() n2 := typ.NumField() if n1 != n2+1 { t.Errorf("runtime.TimeTimer has %d fields, want %d (%s has %d fields)", n1, n2+1, name, n2) return } for i := 0; i < n2; i++ { f1 := runtimeTimeTimer.Field(i)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 03:40:04 UTC 2024 - 3.1K bytes - Viewed (0) -
src/reflect/visiblefields.go
} if t.Kind() != Struct { panic("reflect.VisibleFields of non-struct type") } w := &visibleFieldsWalker{ byName: make(map[string]int), visiting: make(map[Type]bool), fields: make([]StructField, 0, t.NumField()), index: make([]int, 0, 2), } w.walk(t) // Remove all the fields that have been hidden. // Use an in-place removal that avoids copying in // the common case that there are no hidden fields. j := 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 26 14:24:17 UTC 2021 - 3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/meta.go
func setOwnerReference(v reflect.Value, o *metav1.OwnerReference) error { if err := runtime.SetField(o.APIVersion, v, "APIVersion"); err != nil { return err } if err := runtime.SetField(o.Kind, v, "Kind"); err != nil { return err } if err := runtime.SetField(o.Name, v, "Name"); err != nil { return err } if err := runtime.SetField(o.UID, v, "UID"); err != nil { return err } if o.Controller != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 25 16:23:43 UTC 2022 - 16.5K bytes - Viewed (0)