public static void Write(Nettention.Proud.Message msg, Nettention.Proud.FastArray <long> data) { if (data == null) { return; } msg.Write(data.Count); for (int i = 0; i < data.Count; i++) { msg.Write(data[i]); } }
public static void Read(Nettention.Proud.Message msg, out Nettention.Proud.FastArray <long> data) { int count = 0; msg.Read(out count); if (count > 0) { long[] datavalue = new long[count]; for (int i = 0; i < count; i++) { msg.Read(out datavalue[i]); } data = new Nettention.Proud.FastArray <long>(); data.AddRange(datavalue); } else { data = new Nettention.Proud.FastArray <long>(); } }