Пример #1
0
 public static void serialize(MemoryStream stream, ChannelInfo value)
 {
     serialize(stream, value.name);
     serialize(stream, value.ip);
     serialize(stream, value.port);
 }
Пример #2
0
 public static void deserialize(byte[] data, ref Int32 offset, out ChannelInfo value)
 {
     deserialize(data, ref offset, out value.name);
     deserialize(data, ref offset, out value.ip);
     deserialize(data, ref offset, out value.port);
 }