Unmarshal parses the wire-format message in b and places the result in m. The provided message must be mutable (e.g., a non-nil pointer to a message). See the [UnmarshalOptions] type if you need more control.
(b []byte, m Message)
| 59 | // |
| 60 | // See the [UnmarshalOptions] type if you need more control. |
| 61 | func Unmarshal(b []byte, m Message) error { |
| 62 | _, err := UnmarshalOptions{RecursionLimit: protowire.DefaultRecursionLimit}.unmarshal(b, m.ProtoReflect()) |
| 63 | return err |
| 64 | } |
| 65 | |
| 66 | // Unmarshal parses the wire-format message in b and places the result in m. |
| 67 | // The provided message must be mutable (e.g., a non-nil pointer to a message). |