- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for MakeMapWithSize (0.1 sec)
-
src/encoding/gob/decode.go
func (dec *Decoder) decodeMap(mtyp reflect.Type, state *decoderState, value reflect.Value, keyOp, elemOp decOp, ovfl error) { n := int(state.decodeUint()) if value.IsNil() { value.Set(reflect.MakeMapWithSize(mtyp, n)) } keyIsPtr := mtyp.Key().Kind() == reflect.Pointer elemIsPtr := mtyp.Elem().Kind() == reflect.Pointer keyInstr := &decInstr{keyOp, 0, nil, ovfl} elemInstr := &decInstr{elemOp, 0, nil, ovfl}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 19:10:23 UTC 2023 - 40.1K bytes - Viewed (0)