Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mustGetTypeInfo (0.62 sec)

  1. src/encoding/gob/type.go

    var tWireType = mustGetTypeInfo(wireTypeType).id
    var wireTypeUserInfo *userTypeInfo // userTypeInfo of wireType
    
    func init() {
    	// Some magic numbers to make sure there are no surprises.
    	checkId(16, tWireType)
    	checkId(17, mustGetTypeInfo(reflect.TypeFor[arrayType]()).id)
    	checkId(18, mustGetTypeInfo(reflect.TypeFor[CommonType]()).id)
    	checkId(19, mustGetTypeInfo(reflect.TypeFor[sliceType]()).id)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  2. src/encoding/gob/encode.go

    			}
    		case reflect.Struct:
    			// Generate a closure that calls out to the engine for the nested type.
    			getEncEngine(userType(typ), building)
    			info := mustGetTypeInfo(typ)
    			op = func(i *encInstr, state *encoderState, sv reflect.Value) {
    				state.update(i)
    				// indirect through info to delay evaluation for recursive structs
    				enc := info.encoder.Load()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top