Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
8233baf722
commit
5e9461f34d
@ -189,6 +189,12 @@ func (c *jsonpbCodecV2) Unmarshal(d []byte, v interface{}, opts ...codec.Option)
|
||||
}
|
||||
}
|
||||
return unmarshalOptions.Unmarshal(d, m)
|
||||
case *codec.RawMessage:
|
||||
*m = append((*m)[0:0], d...)
|
||||
return nil
|
||||
case codec.RawMessage:
|
||||
copy(m, d)
|
||||
return nil
|
||||
default:
|
||||
return codec.ErrInvalidMessage
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user