Documentation
¶
Overview ¶
The unmarshal plugin generates a Unmarshal method for each message. The `Unmarshal([]byte) error` method results in the fact that the message implements the Unmarshaler interface. The allows proto.Unmarshal to be faster by calling the generated Unmarshal method rather than using reflect. It also uses the unsafe package in the generated code. The speed up using the unsafe package is not very significant.
If is enabled by the following extensions:
- unsafe_unmarshaler
- unsafe_unmarshaler_all
The generation of unmarshalling tests are enabled using one of the following extensions:
- testgen
- testgen_all
And benchmarks given it is enabled using one of the following extensions:
- benchgen
- benchgen_all
This replaces the unmarshal plugin. Please check it for more details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUnmarshal ¶
func NewUnmarshal() *unmarshal
Types ¶
This section is empty.