Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 141 for subfield (0.26 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

      const std::string subdir = io::JoinPath(base, "SubDir");
      tf_gcs_filesystem::CreateDir(filesystem_, subdir.c_str(), status_);
      EXPECT_TF_OK(status_);
      const std::string subfile = io::JoinPath(subdir, "TestSubFile.csv");
      WriteString(subfile, "test");
      EXPECT_TF_OK(status_);
    
      char** entries;
      auto num_entries = tf_gcs_filesystem::GetChildren(filesystem_, base.c_str(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 31 12:04:23 UTC 2020
    - 24.9K bytes
    - Viewed (0)
  2. src/internal/reflectlite/type.go

    func (t rtype) Len() int {
    	tt := t.Type.ArrayType()
    	if tt == nil {
    		panic("reflect: Len of non-array type")
    	}
    	return int(tt.Len)
    }
    
    func (t rtype) NumField() int {
    	tt := t.Type.StructType()
    	if tt == nil {
    		panic("reflect: NumField of non-struct type")
    	}
    	return len(tt.Fields)
    }
    
    func (t rtype) NumIn() int {
    	tt := t.Type.FuncType()
    	if tt == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  3. src/reflect/deepequal.go

    	case Pointer:
    		if v1.UnsafePointer() == v2.UnsafePointer() {
    			return true
    		}
    		return deepValueEqual(v1.Elem(), v2.Elem(), visited)
    	case Struct:
    		for i, n := 0, v1.NumField(); i < n; i++ {
    			if !deepValueEqual(v1.Field(i), v2.Field(i), visited) {
    				return false
    			}
    		}
    		return true
    	case Map:
    		if v1.IsNil() != v2.IsNil() {
    			return false
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:30 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. pkg/api/testing/serialization_proto_test.go

    func fieldsHaveProtobufTags(obj reflect.Type) error {
    	switch obj.Kind() {
    	case reflect.Slice, reflect.Map, reflect.Pointer, reflect.Array:
    		return fieldsHaveProtobufTags(obj.Elem())
    	case reflect.Struct:
    		for i := 0; i < obj.NumField(); i++ {
    			f := obj.Field(i)
    			if f.Name == "TypeMeta" && f.Type.Name() == "TypeMeta" {
    				// TypeMeta is not included in external protobuf because we use an envelope type with TypeMeta
    				continue
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/construct.go

    		fill(dataString, dataInt, t.Elem(), item.Elem(), fillFuncs, filledTypes)
    		// store in the map
    		v.Set(reflect.MakeMap(t))
    		v.SetMapIndex(key, item.Elem())
    
    	case reflect.Struct:
    		for i := 0; i < t.NumField(); i++ {
    			field := t.Field(i)
    
    			if !field.IsExported() {
    				continue
    			}
    
    			// use the json field name, which must be stable
    			dataString := strings.Split(field.Tag.Get("json"), ",")[0]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 19:12:59 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  6. src/encoding/asn1/asn1.go

    	case reflect.Struct:
    		structType := fieldType
    
    		for i := 0; i < structType.NumField(); i++ {
    			if !structType.Field(i).IsExported() {
    				err = StructuralError{"struct contains unexported fields"}
    				return
    			}
    		}
    
    		if structType.NumField() > 0 &&
    			structType.Field(0).Type == rawContentsType {
    			bytes := bytes[initOffset:offset]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  7. src/net/http/httptrace/trace.go

    func (t *ClientTrace) compose(old *ClientTrace) {
    	if old == nil {
    		return
    	}
    	tv := reflect.ValueOf(t).Elem()
    	ov := reflect.ValueOf(old).Elem()
    	structType := tv.Type()
    	for i := 0; i < structType.NumField(); i++ {
    		tf := tv.Field(i)
    		hookType := tf.Type()
    		if hookType.Kind() != reflect.Func {
    			continue
    		}
    		of := ov.Field(i)
    		if of.IsNil() {
    			continue
    		}
    		if tf.IsNil() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. src/go/internal/gccgoimporter/importer_test.go

    	{pkgpath: "nointerface",...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:17:57 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  9. tests/migrate_test.go

    	}
    	typ := reflect.Indirect(reflect.ValueOf(&UserMigrateColumn2{})).Type()
    	numField := typ.NumField()
    	if numField != len(columnTypes) {
    		t.Fatalf("column's number not match struct and ddl, %d != %d", numField, len(columnTypes))
    	}
    	namer := schema.NamingStrategy{}
    	for i := 0; i < numField; i++ {
    		expectName := namer.ColumnName("", typ.Field(i).Name)
    		if columnTypes[i].Name() != expectName {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
  10. src/encoding/asn1/marshal.go

    		return int64Encoder(v.Int()), nil
    	case reflect.Struct:
    		t := v.Type()
    
    		for i := 0; i < t.NumField(); i++ {
    			if !t.Field(i).IsExported() {
    				return nil, StructuralError{"struct contains unexported fields"}
    			}
    		}
    
    		startingField := 0
    
    		n := t.NumField()
    		if n == 0 {
    			return bytesEncoder(nil), nil
    		}
    
    		// If the first element of the structure is a non-empty
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top