Esempio n. 1
0
 public int WriteWithoutSize(BaseWireable[] items)
 {
     if (items == null)
     {
         return 0;
     }
     else
     {
         return items.Sum(x => x.WriteToWire(this));
     }
 }
Esempio n. 2
0
 public int Write(BaseWireable[] items)
 {
     if (items == null)
     {
         Write(-1);
         return 4;
     }
     else
     {
         Write(items.Length);
         var total = items.Sum(x => x.WriteToWire(this));
         return 4 + total;
     }
 }