// UnmarshalResult unmarshals the result into the type as registered by // birpc.Register, the type MUST implement the msgp.Unmarshaler interface func (c *codec) UnmarshalResult(msg *birpc.Message, result interface{}) error { return mpc.Unmarshal(msg.Result, result) }
// UnmarshalArgs unmarshals the arguments into the type as registered by // birpc.Register, the type MUST implement the msgp.Unmarshaler interface func (c *codec) UnmarshalArgs(msg *birpc.Message, args interface{}) error { return mpc.Unmarshal(msg.Args, args) }