public void Write(MemoryStream pStream)
 {
     mContentHandles.ForEach(h =>
     {
         pStream.WriteKey(EMessageKeyType.Prefixed, ContentHandleTag);
         pStream.WritePackable(h);
     });
 }
Ejemplo n.º 2
0
 public void Write(MemoryStream pStream)
 {
     pStream.WriteKey(EMessageKeyType.Prefixed, HostTag);
     pStream.WritePackable(mHost);
     if (mHasObjectId)
     {
         pStream.WriteKey(EMessageKeyType.Variable, ObjectIdTag);
         pStream.WriteVariable(mObjectId);
     }
 }
Ejemplo n.º 3
0
 public void Write(MemoryStream pStream)
 {
     pStream.WriteKey(EMessageKeyType.Prefixed, ObjectAddressTag);
     pStream.WritePackable(mObjectAddress);
     pStream.WriteKey(EMessageKeyType.Variable, StatusTag);
     pStream.WriteVariable(mStatus);
     pStream.WriteKey(EMessageKeyType.Variable, ServiceHashTag);
     pStream.WriteVariable(mServiceHash);
     pStream.WriteKey(EMessageKeyType.Variable, MethodIdTag);
     pStream.WriteVariable(mMethodId);
 }
Ejemplo n.º 4
0
 public void Write(MemoryStream pStream)
 {
     if (mHasClientId)
     {
         pStream.WriteKey(EMessageKeyType.Prefixed, ClientIdTag);
         pStream.WritePackable(mClientId);
     }
     if (mHasBindRequest)
     {
         pStream.WriteKey(EMessageKeyType.Prefixed, BindRequestTag);
         pStream.WritePackable(mBindRequest);
     }
 }
Ejemplo n.º 5
0
 public void Write(MemoryStream pStream)
 {
     pStream.WriteKey(EMessageKeyType.Variable, ServiceIdTag);
     pStream.WriteVariable(mServiceId);
     if (mHasMethodId)
     {
         pStream.WriteKey(EMessageKeyType.Variable, MethodIdTag);
         pStream.WriteVariable(mMethodId);
     }
     pStream.WriteKey(EMessageKeyType.Variable, TokenTag);
     pStream.WriteVariable(mToken);
     if (mHasObjectId)
     {
         pStream.WriteKey(EMessageKeyType.Variable, ObjectIdTag);
         pStream.WriteVariable(mObjectId);
     }
     if (mHasSize)
     {
         pStream.WriteKey(EMessageKeyType.Variable, SizeTag);
         pStream.WriteVariable(mSize);
     }
     if (mHasStatus)
     {
         pStream.WriteKey(EMessageKeyType.Variable, StatusTag);
         pStream.WriteVariable(mStatus);
     }
     mErrors.ForEach(e =>
     {
         pStream.WriteKey(EMessageKeyType.Prefixed, ErrorTag);
         pStream.WritePackable(e);
     });
 }
Ejemplo n.º 6
0
 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);
     });
 }
Ejemplo n.º 7
0
 public void Write(MemoryStream pStream)
 {
     pStream.WriteKey(EMessageKeyType.Variable, ErrorCodeTag);
     pStream.WriteVariable(mErrorCode);
     if (mHasAccount)
     {
         pStream.WriteKey(EMessageKeyType.Prefixed, AccountTag);
         pStream.WritePackable(mAccount);
     }
     mGameAccounts.ForEach(a =>
     {
         pStream.WriteKey(EMessageKeyType.Prefixed, GameAccountTag);
         pStream.WritePackable(a);
     });
 }
Ejemplo n.º 8
0
 public void Write(MemoryStream pStream)
 {
     pStream.WriteKey(EMessageKeyType.Prefixed, ServerIdTag);
     pStream.WritePackable(mServerId);
     if (mHasClientId)
     {
         pStream.WriteKey(EMessageKeyType.Prefixed, ClientIdTag);
         pStream.WritePackable(mClientId);
     }
     if (mHasBindResult)
     {
         pStream.WriteKey(EMessageKeyType.Variable, BindResultTag);
         pStream.WriteVariable(mBindResult);
     }
     if (mHasBindResponse)
     {
         pStream.WriteKey(EMessageKeyType.Prefixed, BindResponseTag);
         pStream.WritePackable(mBindResponse);
     }
     if (mHasConnectionMeteringContentHandles)
     {
         pStream.WriteKey(EMessageKeyType.Prefixed, ConnectionMeteringContentHandlesTag);
         pStream.WritePackable(mConnectionMeteringContentHandles);
     }
 }