Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 21 of 21 for asTyped (0.26 sec)

  1. src/go/types/sizes.go

    	Uint64:     8,
    	Float32:    4,
    	Float64:    8,
    	Complex64:  8,
    	Complex128: 16,
    }
    
    func (s *StdSizes) Sizeof(T Type) int64 {
    	switch t := under(T).(type) {
    	case *Basic:
    		assert(isTyped(T))
    		k := t.kind
    		if int(k) < len(basicSizes) {
    			if s := basicSizes[k]; s > 0 {
    				return int64(s)
    			}
    		}
    		if k == String {
    			return s.WordSize * 2
    		}
    	case *Array:
    		n := t.len
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top