Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 34 of 34 for ArrayType (0.23 sec)

  1. src/cmd/link/internal/ld/deadcode.go

    		off += arch.PtrSize
    	case abi.Func: // reflect.funcType
    		off += arch.PtrSize // 4 bytes, pointer aligned
    	case abi.Slice: // reflect.sliceType
    		off += arch.PtrSize
    	case abi.Array: // reflect.arrayType
    		off += 3 * arch.PtrSize
    	case abi.Chan: // reflect.chanType
    		off += 2 * arch.PtrSize
    	case abi.Map: // reflect.mapType
    		off += 4*arch.PtrSize + 8
    	case abi.Interface: // reflect.interfaceType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/runtime/cgocall.go

    	if !t.Pointers() || p == nil {
    		// If the type has no pointers there is nothing to do.
    		return
    	}
    
    	switch t.Kind_ & abi.KindMask {
    	default:
    		throw("can't happen")
    	case abi.Array:
    		at := (*arraytype)(unsafe.Pointer(t))
    		if !indir {
    			if at.Len != 1 {
    				throw("can't happen")
    			}
    			cgoCheckArg(at.Elem, p, at.Elem.Kind_&abi.KindDirectIface == 0, top, msg)
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  3. src/go/doc/reader.go

    		var typ *namedType // type to associate the function with
    		numResultTypes := 0
    		for _, res := range fun.Type.Results.List {
    			factoryType := res.Type
    			if t, ok := factoryType.(*ast.ArrayType); ok {
    				// We consider functions that return slices or arrays of type
    				// T (or pointers to T) as factory functions of T.
    				factoryType = t.Elt
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  4. doc/go_spec.html

    </p>
    
    <pre class="ebnf">
    Type      = TypeName [ TypeArgs ] | TypeLit | "(" Type ")" .
    TypeName  = identifier | QualifiedIdent .
    TypeArgs  = "[" TypeList [ "," ] "]" .
    TypeList  = Type { "," Type } .
    TypeLit   = ArrayType | StructType | PointerType | FunctionType | InterfaceType |
                SliceType | MapType | ChannelType .
    </pre>
    
    <p>
    The language <a href="#Predeclared_identifiers">predeclares</a> certain type names.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (1)
Back to top