Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 347 for nelem (0.04 sec)

  1. src/go/types/typestring.go

    				w.typeName(obj)
    				break
    			}
    		}
    		w.string(t.name)
    
    	case *Array:
    		w.byte('[')
    		w.string(strconv.FormatInt(t.len, 10))
    		w.byte(']')
    		w.typ(t.elem)
    
    	case *Slice:
    		w.string("[]")
    		w.typ(t.elem)
    
    	case *Struct:
    		w.string("struct{")
    		for i, f := range t.fields {
    			if i > 0 {
    				w.byte(';')
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. lib/time/zoneinfo.zip

    America/Argentina/Salta America/Argentina/San_Juan America/Argentina/San_Luis America/Argentina/Tucuman America/Argentina/Ushuaia America/Aruba America/Asuncion America/Atikokan America/Atka America/Bahia America/Bahia_Banderas America/Barbados America/Belem America/Belize America/Blanc-Sablon America/Boa_Vista America/Bogota America/Boise America/Buenos_Aires America/Cambridge_Bay America/Campo_Grande America/Cancun America/Caracas America/Catamarca America/Cayenne America/Cayman America/Chicago America/Chihuahua...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 18:20:41 UTC 2024
    - 392.3K bytes
    - Viewed (1)
  3. src/cmd/compile/internal/ssa/_gen/dec.rules

    (SlicePtr (SliceMake ptr _ _ )) => ptr
    (SliceLen (SliceMake _ len _)) => len
    (SliceCap (SliceMake _ _ cap)) => cap
    (SlicePtrUnchecked (SliceMake ptr _ _ )) => ptr
    
    (Load <t> ptr mem) && t.IsSlice() =>
      (SliceMake
        (Load <t.Elem().PtrTo()> ptr mem)
        (Load <typ.Int>
          (OffPtr <typ.IntPtr> [config.PtrSize] ptr)
          mem)
        (Load <typ.Int>
          (OffPtr <typ.IntPtr> [2*config.PtrSize] ptr)
          mem))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/predicates.go

    			// assume they are the same to avoid spurious follow-on errors.
    			return (x.len < 0 || y.len < 0 || x.len == y.len) && c.identical(x.elem, y.elem, p)
    		}
    
    	case *Slice:
    		// Two slice types are identical if they have identical element types.
    		if y, ok := y.(*Slice); ok {
    			return c.identical(x.elem, y.elem, p)
    		}
    
    	case *Struct:
    		// Two struct types are identical if they have the same sequence of fields,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/complit.go

    	if n.Op() != ir.OSLICELIT {
    		return false
    	}
    
    	return n.Type().Elem().Size() == 0 || n.Len <= ir.MaxSmallArraySize/n.Type().Elem().Size()
    }
    
    func slicelit(ctxt initContext, n *ir.CompLitExpr, var_ ir.Node, init *ir.Nodes) {
    	// make an array type corresponding the number of elements we have
    	t := types.NewArray(n.Type().Elem(), n.Len)
    	types.CalcSize(t)
    
    	if ctxt == inNonInitFunction {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:03:54 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  6. test/fixedbugs/issue65957.dir/main.go

    package main
    
    import (
    	"./a"
    	"reflect"
    )
    
    var s = []rune{0, 1, 2, 3}
    
    func main() {
    	m := map[any]int{}
    	k := reflect.New(reflect.ArrayOf(4, reflect.TypeOf(int32(0)))).Elem().Interface()
    	m[k] = 1
    	a.F()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 05:32:14 UTC 2024
    - 368 bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/typexpr.go

    			typ.len = -1
    		}
    		typ.elem = check.varType(e.Elem)
    		if typ.len >= 0 {
    			return typ
    		}
    		// report error if we encountered [...]
    
    	case *syntax.SliceType:
    		typ := new(Slice)
    		setDefType(def, typ)
    		typ.elem = check.varType(e.Elem)
    		return typ
    
    	case *syntax.DotsType:
    		// dots are handled explicitly where they are legal
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/rsc.io/markdown/parse.go

    		prevEnd = b.Pos().EndLine
    		s.prefix1 = "" // item prefix only for first block
    	}
    }
    
    var (
    	blockType   = reflect.TypeOf(new(Block)).Elem()
    	blocksType  = reflect.TypeOf(new([]Block)).Elem()
    	inlinesType = reflect.TypeOf(new([]Inline)).Elem()
    )
    
    func printb(buf *bytes.Buffer, b Block, prefix string) {
    	fmt.Fprintf(buf, "(%T", b)
    	v := reflect.ValueOf(b)
    	v = reflect.Indirect(v)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/under.go

    	if Identical(x, y) {
    		return x
    	}
    
    	// We may have channels that differ in direction only.
    	if x, _ := x.(*Chan); x != nil {
    		if y, _ := y.(*Chan); y != nil && Identical(x.elem, y.elem) {
    			// We have channels that differ in direction only.
    			// If there's an unrestricted channel, select the restricted one.
    			switch {
    			case x.dir == SendRecv:
    				return y
    			case y.dir == SendRecv:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 22:34:27 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. src/path/filepath/path_windows.go

    		path = "."
    	}
    	fullPath, err := syscall.FullPath(path)
    	if err != nil {
    		return "", err
    	}
    	return Clean(fullPath), nil
    }
    
    func join(elem []string) string {
    	var b strings.Builder
    	var lastChar byte
    	for _, e := range elem {
    		switch {
    		case b.Len() == 0:
    			// Add the first non-empty path element unchanged.
    		case os.IsPathSeparator(lastChar):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top