cayxmessage

package
v0.0.0-...-4cd9d19 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DK_MAPPED_NEW = 0x08 //校验类型

Variables

View Source
var DECODE_MAP_NEW = []byte{}/* 256 elements not displayed */
View Source
var ENCODE_MAP_NEW = []byte{}/* 256 elements not displayed */

Functions

func MessageDecodeBybufio

func MessageDecodeBybufio(r *bufio.Reader) (msg legoproto.IMessage, err error)

func MessageDecodeBybytes

func MessageDecodeBybytes(buffer []byte) (msg legoproto.IMessage, err error)

func MessageMarshal

func MessageMarshal(comId uint16, msgId uint16, msg interface{}) legoproto.IMessage

Types

type CayxMessage

type CayxMessage struct {
	// contains filtered or unexported fields
}

func (*CayxMessage) GetComId

func (this *CayxMessage) GetComId() uint16

func (*CayxMessage) GetMsg

func (this *CayxMessage) GetMsg() []byte

func (*CayxMessage) GetMsgId

func (this *CayxMessage) GetMsgId() uint16

func (*CayxMessage) Serializable

func (this *CayxMessage) Serializable() (bytes []byte, err error)

func (*CayxMessage) ToString

func (this *CayxMessage) ToString() string

Jump to

Keyboard shortcuts

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