unsafeunmarshaler

package
v0.0.0-...-46df3e5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2014 License: BSD-3-Clause Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL