MCPcopy
hub / github.com/aceld/zinx / Pack

Method Pack

ziface/idatapack.go:11–11  ·  view source on GitHub ↗

Get the length of the message header(获取包头长度方法)

(msg IMessage)

Source from the content-addressed store, hash-verified

9type IDataPack interface {
10 GetHeadLen() uint32 // Get the length of the message header(获取包头长度方法)
11 Pack(msg IMessage) ([]byte, error) // Package message (封包方法)
12 Unpack([]byte) (IMessage, error) // Unpackage message(拆包方法)
13}
14

Callers 12

TestDataPackFunction · 0.65
ClientTestFunction · 0.65
PackMethod · 0.65
SendMsgMethod · 0.65
SendBuffMsgMethod · 0.65
SendMsgMethod · 0.65
SendBuffMsgMethod · 0.65
SendMsgMethod · 0.65
SendBuffMsgMethod · 0.65
mainFunction · 0.65
mainFunction · 0.65

Implementers 2

DataPackzpack/datapack_tlv_bigendian.go
DataPackLtvzpack/datapack_ltv_littleendian.go

Calls

no outgoing calls

Tested by 4

TestDataPackFunction · 0.52
ClientTestFunction · 0.52
PackMethod · 0.52