Esempio n. 1
0
func (this *SMsgHeaderGateServer) DeSerialize(byDatas []byte) bsn_common.TMsgLen {
	vTMsgLen := this.SMsgHeader.DeSerialize(byDatas)

	this.M_TGateGroupId = bsn_common.TGateGroupId(binary.LittleEndian.Uint16(byDatas[vTMsgLen:]))
	vTMsgLen += 2
	this.M_TGateUserId = bsn_common.TGateUserId(binary.LittleEndian.Uint16(byDatas[vTMsgLen:]))
	vTMsgLen += 2

	return vTMsgLen
}
Esempio n. 2
0
func (this *SMsgHeaderGateClient) UserId() bsn_common.TGateUserId {
	return bsn_common.TGateUserId(this.Type())
}