예제 #1
0
    public override byte[] toBinary()
    {
        writer = new st.net.NetBase.ByteWriter();
        ushort lenlogs = (ushort)logs.Count;

        writer.write_short(lenlogs);
        for (int i_logs = 0; i_logs < lenlogs; i_logs++)
        {
            st.net.NetBase.guild_log listData = logs[i_logs];
            listData.toBinary(writer);
        }
        return(writer.data);
    }
예제 #2
0
    public override void fromBinary(byte[] binary)
    {
        reader = new st.net.NetBase.ByteReader(binary);
        ushort lenlogs = reader.Read_ushort();

        logs = new List <st.net.NetBase.guild_log>();
        for (int i_logs = 0; i_logs < lenlogs; i_logs++)
        {
            st.net.NetBase.guild_log listData = new st.net.NetBase.guild_log();
            listData.fromBinary(reader);
            logs.Add(listData);
        }
    }