static IGCSerializableHeader ReadGameCoordinatorHeader(uint rawEMsg, Stream stream) { IGCSerializableHeader header = null; if (MsgUtil.IsProtoBuf(rawEMsg)) { header = new MsgGCHdrProtoBuf(); } else { header = new MsgGCHdr(); } header.Deserialize(stream); return(header); }
IGCSerializableHeader BuildGCHeader(uint realEMsg, Stream str) { IGCSerializableHeader hdr = null; if (MsgUtil.IsProtoBuf(realEMsg)) { hdr = new MsgGCHdrProtoBuf(); } else { hdr = new MsgGCHdr(); } hdr.Deserialize(str); return(hdr); }