Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for idToType (0.07 sec)

  1. src/encoding/gob/type.go

    	types                = make(map[reflect.Type]gobType, 32)
    	idToTypeSlice        = make([]gobType, 1, firstUserId)
    	builtinIdToTypeSlice [firstUserId]gobType // set in init() after builtins are established
    )
    
    func idToType(id typeId) gobType {
    	if id < 0 || int(id) >= len(idToTypeSlice) {
    		return nil
    	}
    	return idToTypeSlice[id]
    }
    
    func builtinIdToType(id typeId) gobType {
    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/decode.go

    	}
    }
    
    // typeString returns a human-readable description of the type identified by remoteId.
    func (dec *Decoder) typeString(remoteId typeId) string {
    	typeLock.Lock()
    	defer typeLock.Unlock()
    	if t := idToType(remoteId); t != nil {
    		// globally known type.
    		return t.string()
    	}
    	return dec.wireType[remoteId].string()
    }
    
    // compileSingle compiles the decoder engine for a non-struct top-level value, including
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
Back to top