Exemple #1
0
    public static byte[] Write(CFG_ItemBinaryConfig source)
    {
        ByteBuffer bfs = new ByteBuffer();

        int len = source.items.Count;

        bfs.WriteInt32(len);
        for (int i = 0; i < len; ++i)
        {
            bfs.WriteBytes(CFG_Item.Write(source.items[i]));
        }


        return(bfs.source);
    }