Пример #1
0
 void WriteVarArray(byte[] x, NetworkStream s)
 {
     Write(Globs.HostToNet(x.Length), s);
     Write(x, s);
 }
Пример #2
0
 void WriteInt(int x, NetworkStream s)
 {
     s.Write(Globs.HostToNet(x), 0, 4);
 }