예제 #1
0
 public InkSheetStrokesAddedMessage(Message parent, SerializedPacket p) : base(parent, p)
 {
     this.SavedInks = new byte[SerializedPacket.DeserializeInt(p.GetNextPart())][];
     for (int i = 0; i < this.SavedInks.Length; i++)
     {
         this.SavedInks[i] = SerializedPacket.DeserializeByteArray(p.GetNextPart());
     }
 }
예제 #2
0
 public Chunk(SerializedPacket p)
 {
     SerializedPacket.VerifyPacket(p, this.GetClassId());
     this.Data = (!SerializedPacket.IsNullPacket(p.PeekNextPart())) ?
                 SerializedPacket.DeserializeByteArray(p.PeekNextPart()) : null; p.GetNextPart();
     this.MessageSequence          = SerializedPacket.DeserializeULong(p.GetNextPart());
     this.ChunkSequenceInMessage   = SerializedPacket.DeserializeULong(p.GetNextPart());
     this.NumberOfChunksInMessage  = SerializedPacket.DeserializeULong(p.GetNextPart());
     this.MessageDependency        = SerializedPacket.DeserializeULong(p.GetNextPart());
     this.FrameSequence            = SerializedPacket.DeserializeULong(p.GetNextPart());
     this.OldestRecoverableMessage = SerializedPacket.DeserializeULong(p.GetNextPart());
     this.OldestRecoverableFrame   = SerializedPacket.DeserializeULong(p.GetNextPart());
 }