public void Write(MemoryStream pStream) { if (mImportedServiceIds.Count > 0) { pStream.WriteKey(EMessageKeyType.Prefixed, ImportedServiceIdTag); MemoryStream stream = new MemoryStream(); mImportedServiceIds.ForEach(i => stream.WriteVariable(i)); pStream.WritePrefixed(stream); } }
public void Write(MemoryStream pStream) { if (mImportedServiceHashes.Count > 0) { pStream.WriteKey(EMessageKeyType.Prefixed, ImportedServiceHashTag); MemoryStream stream = new MemoryStream(); mImportedServiceHashes.ForEach(h => stream.WriteFixed32(h)); pStream.WritePrefixed(stream); } mExportedServices.ForEach(s => { pStream.WriteKey(EMessageKeyType.Prefixed, ExportedServiceTag); pStream.WritePackable(s); }); }
public void Write(MemoryStream pStream) { pStream.WriteKey(EMessageKeyType.Fixed32, RegionTag); pStream.WriteFixed32(mRegion); pStream.WriteKey(EMessageKeyType.Fixed32, UsageTag); pStream.WriteFixed32(mUsage); pStream.WriteKey(EMessageKeyType.Prefixed, HashTag); pStream.WritePrefixed(mHash); if (mHasProtoUrl) { pStream.WriteKey(EMessageKeyType.Prefixed, ProtoUrlTag); pStream.WritePrefixed(Encoding.GetEncoding(1252), mProtoUrl); } }
public void Write(MemoryStream pStream) { if (mHasProgram) { pStream.WriteKey(EMessageKeyType.Prefixed, ProgramTag); pStream.WritePrefixed(Encoding.GetEncoding(1252), mProgram); } if (mHasPlatform) { pStream.WriteKey(EMessageKeyType.Prefixed, PlatformTag); pStream.WritePrefixed(Encoding.GetEncoding(1252), mPlatform); } if (mHasLocale) { pStream.WriteKey(EMessageKeyType.Prefixed, LocaleTag); pStream.WritePrefixed(Encoding.GetEncoding(1252), mLocale); } if (mHasEmail) { pStream.WriteKey(EMessageKeyType.Prefixed, EmailTag); pStream.WritePrefixed(Encoding.GetEncoding(1252), mEmail); } if (mHasVersion) { pStream.WriteKey(EMessageKeyType.Prefixed, VersionTag); pStream.WritePrefixed(Encoding.GetEncoding(1252), mVersion); } if (mHasApplicationVersion) { pStream.WriteKey(EMessageKeyType.Variable, ApplicationVersionTag); pStream.WriteVariable(mApplicationVersion); } if (mHasCookieOnly) { pStream.WriteKey(EMessageKeyType.Variable, CookieOnlyTag); pStream.WriteVariable((ulong)(mCookieOnly ? 1 : 0)); } }