message

package
v0.0.0-...-466c206 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MsgCodeAndMsgDescMap = make(map[int16]protoreflect.MessageDescriptor)
View Source
var MsgLocker = &sync.Mutex{}
View Source
var MsgNameAndMsgCodeMap = make(map[string]int16)

Functions

func Decode

func Decode(msgData []byte, msgCode int16) (*dynamicpb.Message, error)

Decode 根据消息代号解码字节数组

func Encode

func Encode(msgObj protoreflect.ProtoMessage) ([]byte, error)

Encode 将消息对象编码成字节数组

Types

This section is empty.

Jump to

Keyboard shortcuts

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