Lines Matching refs:extension
150 // MarshalMessageSet encodes the extension map represented by m in the message set wire format.
153 var m map[int32]Extension
160 case map[int32]Extension:
166 return nil, errors.New("proto: not an extension map")
169 // Sort extension IDs to provide a deterministic encoding.
191 // UnmarshalMessageSet decodes the extension map encoded in buf in the message set wire format.
194 var m map[int32]Extension
198 case map[int32]Extension:
201 return errors.New("proto: not an extension map")
227 m[id] = Extension{enc: b}
232 // MarshalMessageSetJSON encodes the extension map represented by m in JSON format.
235 var m map[int32]Extension
239 case map[int32]Extension:
242 return nil, errors.New("proto: not an extension map")
284 // UnmarshalMessageSetJSON decodes the extension map encoded in buf in JSON format.