public override byte[] toBinary() { writer = new st.net.NetBase.ByteWriter(); ushort lenprops = (ushort)props.Count; writer.write_short(lenprops); for (int i_props = 0; i_props < lenprops; i_props++) { st.net.NetBase.prop_entry listData = props[i_props]; listData.toBinary(writer); } return(writer.data); }
public override void fromBinary(byte[] binary) { reader = new st.net.NetBase.ByteReader(binary); ushort lenprops = reader.Read_ushort(); props = new List <st.net.NetBase.prop_entry>(); for (int i_props = 0; i_props < lenprops; i_props++) { st.net.NetBase.prop_entry listData = new st.net.NetBase.prop_entry(); listData.fromBinary(reader); props.Add(listData); } }