Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshal ¶
func Marshal(message proto1.GeneratedMessage) ([]byte, error)
Marshal returns the wire-format encoding of a message. The message can be either a protobuf v1 or v2 message.
func ProtoEqual ¶
func ProtoEqual(x proto1.GeneratedMessage, y proto1.GeneratedMessage) bool
ProtoEqual reports whether two messages are equal, as with the standard proto.Equal function. The messages can be either protobuf v1 or v2 message.
func Unmarshal ¶
func Unmarshal(bytes []byte, message proto1.GeneratedMessage) error
Unmarshal parses the wire-format message bytes and places the result in the provided message. The provided message must be mutable (e.g., a non-nil pointer to a message). The message can be either a protobuf v1 or v2 message.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.