WriteUnsignedInt16() public method

public WriteUnsignedInt16 ( UInt16 u ) : void
u System.UInt16
return void
示例#1
0
 public override void Pack(ByteArray w)
 {
     w.WriteUTF(this.id);
     w.WriteUnsignedInt16((UInt16)this.cards.Length);
     for (int k = 0; k < this.cards.Length; k++)
     {
         w.WriteUTF(this.cards[k]);
     }
     w.WriteUnsignedInt16((UInt16)this.outOfCards.Length);
     for (int k = 0; k < this.outOfCards.Length; k++)
     {
         w.WriteUTF(this.outOfCards[k]);
     }
     w.WriteUTF(this.randomNum);
     w.WriteInt32(this.ty);
 }
示例#2
0
 public override void Pack(ByteArray w)
 {
     w.WriteUnsignedInt16((UInt16)this.winId.Length);
     for (int k = 0; k < this.winId.Length; k++)
     {
         w.WriteUTF(this.winId[k]);
     }
 }
示例#3
0
 public override void Pack(ByteArray w)
 {
     w.WriteUTF(this.roomId);
     w.WriteUnsignedInt16((UInt16)this.cards.Length);
     for (int k = 0; k < this.cards.Length; k++)
     {
         w.WriteUTF(this.cards[k]);
     }
 }
示例#4
0
 public override void Pack(ByteArray w)
 {
     w.WriteUnsignedInt16((UInt16)this.hole_cards.Length);
     for (int k = 0; k < this.hole_cards.Length; k++)
     {
         w.WriteUTF(this.hole_cards[k]);
     }
     w.WriteUTF(this.roomId);
     w.WriteUnsignedInt16((UInt16)this.playerIds.Length);
     for (int k = 0; k < this.playerIds.Length; k++)
     {
         w.WriteUTF(this.playerIds[k]);
     }
     w.WriteUnsignedInt16((UInt16)this.players.Length);
     for (int k = 0; k < this.players.Length; k++)
     {
         this.players[k].Pack(w);
     }
 }