Documentation
¶
Index ¶
Constants ¶
View Source
const GProtoHeadLength uint32 = 24
GProtoHeadLength 包头长度
Variables ¶
This section is empty.
Functions ¶
func GetProtoHead ¶
func GetProtoHead(buf []byte) (packetLength PacketLength, messageID MessageID, sessionID SessionID, resultID ResultID, userID UserID)
获取协议包头
Types ¶
type PacketLength ¶
type PacketLength uint32
PacketLength 包总长度
func GetPacketLength ¶
func GetPacketLength(buf []byte) (packetLength PacketLength)
////////////////////////////////////////////////////////////////////////////// 获取协议包头长度
Click to show internal directories.
Click to hide internal directories.