Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for StructType (0.21 sec)

  1. src/encoding/gob/doc.go

    	04	// structType.field[0].typeId is 2 (signed int).
    	00	// End of structType.field[0]; start structType.field[1]; set field number to -1.
    	01	// Add 1 to get field number 0: field[1].name
    	01	// 1 byte
    	59	// structType.field[1].name = "Y"
    	01	// Add 1 to get field number 1: field[1].id
    	04	// struct.Type.field[1].typeId is 2 (signed int).
    	00	// End of structType.field[1]; end of structType.field.
    	00	// end of wireType.structType structure
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  2. src/encoding/gob/type.go

    		str += fmt.Sprintf("%s %s; ", f.Name, f.Id.gobType().safeString(seen))
    	}
    	str += "}"
    	return str
    }
    
    func (s *structType) string() string { return s.safeString(make(map[typeId]bool)) }
    
    func newStructType(name string) *structType {
    	s := &structType{CommonType{Name: name}, nil}
    	// For historical reasons we set the id here rather than init.
    	// See the comment in newTypeObject for details.
    	setTypeId(s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  3. src/internal/reflectlite/type.go

    // ptrType represents a pointer type.
    type ptrType = abi.PtrType
    
    // sliceType represents a slice type.
    type sliceType = abi.SliceType
    
    // structType represents a struct type.
    type structType = abi.StructType
    
    // name is an encoded type name with optional extra data.
    //
    // The first byte is a bit field containing:
    //
    //	1<<0 the name is exported
    //	1<<1 tag data follows the name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. src/runtime/type.go

    type arraytype = abi.ArrayType
    
    type chantype = abi.ChanType
    
    type slicetype = abi.SliceType
    
    type functype = abi.FuncType
    
    type ptrtype = abi.PtrType
    
    type name = abi.Name
    
    type structtype = abi.StructType
    
    func pkgPath(n name) string {
    	if n.Bytes == nil || *n.Data(0)&(1<<2) == 0 {
    		return ""
    	}
    	i, l := n.ReadVarint(1)
    	off := 1 + i + l
    	if *n.Data(0)&(1<<1) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. src/internal/abi/type.go

    	case Slice:
    		tt := (*SliceType)(unsafe.Pointer(t))
    		return tt.Elem
    	}
    	return nil
    }
    
    // StructType returns t cast to a *StructType, or nil if its tag does not match.
    func (t *Type) StructType() *StructType {
    	if t.Kind() != Struct {
    		return nil
    	}
    	return (*StructType)(unsafe.Pointer(t))
    }
    
    // MapType returns t cast to a *MapType, or nil if its tag does not match.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/admissionregistration/v1alpha1/generated.proto

    // on whether it meets the match criteria.
    // The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
    // +structType=atomic
    message MatchResources {
      // NamespaceSelector decides whether to run the admission control policy on an object based
      // on whether the namespace for that object matches the selector. If the
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  7. src/go/ast/ast.go

    	ArrayType struct {
    		Lbrack token.Pos // position of "["
    		Len    Expr      // Ellipsis node for [...]T array types, nil for slice types
    		Elt    Expr      // element type
    	}
    
    	// A StructType node represents a struct type.
    	StructType struct {
    		Struct     token.Pos  // position of "struct" keyword
    		Fields     *FieldList // list of field declarations
    		Incomplete bool       // true if (source) fields are missing in the Fields list
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/rbac/v1/types.go

    }
    
    // Subject contains a reference to the object or user identities a role binding applies to.  This can either hold a direct API object reference,
    // or a value for non-objects such as user and group names.
    // +structType=atomic
    type Subject struct {
    	// Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/admissionregistration/v1alpha1/generated.proto

    // on whether it meets the match criteria.
    // The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
    // +structType=atomic
    message MatchResources {
      // NamespaceSelector decides whether to run the admission control policy on an object based
      // on whether the namespace for that object matches the selector. If the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go

    			}
    			obj = tuple.At(index)
    			t = nil
    
    		case opField:
    			structType, ok := t.(*types.Struct)
    			if !ok {
    				return nil, fmt.Errorf("cannot apply %q to %s (got %T, want struct)", code, t, t)
    			}
    			if n := structType.NumFields(); index >= n {
    				return nil, fmt.Errorf("field index %d out of range [0-%d)", index, n)
    			}
    			obj = structType.Field(index)
    			t = nil
    
    		case opMethod:
    			switch t := t.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top