Exemple #1
0
 public override void Read(IDecoder dec)
 {
     packing_flags = (int)dec.ReadUint16();
     if ((packing_flags & 256) != 0)
     {
         _Queue = dec.ReadStr8();
     }
     if ((packing_flags & 512) != 0)
     {
         _Destination = dec.ReadStr8();
     }
     if ((packing_flags & 1024) != 0)
     {
         _AcceptMode = MessageAcceptModeGetter.Get(dec.ReadUint8());
     }
     if ((packing_flags & 2048) != 0)
     {
         _AcquireMode = MessageAcquireModeGetter.Get(dec.ReadUint8());
     }
     if ((packing_flags & 8192) != 0)
     {
         _ResumeId = dec.ReadStr16();
     }
     if ((packing_flags & 16384) != 0)
     {
         _ResumeTtl = dec.ReadUint64();
     }
     if ((packing_flags & 32768) != 0)
     {
         _Arguments = dec.ReadMap();
     }
 }
Exemple #2
0
 public override void Read(IDecoder dec)
 {
     packing_flags = (int)dec.ReadUint16();
     if ((packing_flags & 256) != 0)
     {
         _Destination = dec.ReadStr8();
     }
     if ((packing_flags & 512) != 0)
     {
         _AcceptMode = MessageAcceptModeGetter.Get(dec.ReadUint8());
     }
     if ((packing_flags & 1024) != 0)
     {
         _AcquireMode = MessageAcquireModeGetter.Get(dec.ReadUint8());
     }
 }