util

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MulanPSL-2.0 Imports: 2 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

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