protoc

package
v0.0.0-...-b7647e0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: Apache-2.0 Imports: 2 Imported by: 61

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustMarshal

func MustMarshal(pb PB) []byte

MustMarshal if marsh failed, will panic

func MustMarshalTo

func MustMarshalTo(pb PB, data []byte) int

MustMarshalTo if marsh failed, will panic

func MustUnmarshal

func MustUnmarshal(pb PB, data []byte)

MustUnmarshal if unmarshal failed, will panic

Types

type PB

type PB interface {
	Marshal() ([]byte, error)
	MarshalTo(data []byte) (int, error)
	Unmarshal(data []byte) error
	Size() int
}

PB pb interface

Jump to

Keyboard shortcuts

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