public override byte[] GetPacketData() // 바이트형 패킷(송신용) { MatchDataSerializer serializer = new MatchDataSerializer(); serializer.Serialize(m_data); return(serializer.GetSerializedData()); }
public MatchDataPacket(byte[] data) // 패킷을 데이터로 변환(수신용) { m_data = new MatchData(); MatchDataSerializer serializer = new MatchDataSerializer(); serializer.SetDeserializedData(data); serializer.Deserialize(ref m_data); }