Author Topic: RakNetPageRow does not has datas, and keys interface  (Read 9918 times)

bendaowei

  • Not-a-newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
RakNetPageRow does not has datas, and keys interface
« on: May 09, 2012, 09:59:10 PM »
In c++
   struct RAK_DLL_EXPORT Page
   {
      bool isLeaf;
      int size;
      KeyType keys[order];
      DataType data[order];
      Page<KeyType, DataType, order> *next;
      Page<KeyType, DataType, order> *previous;
      Page *children[order+1];
   };
in C#, it does not has the interface to access the keys and data? How to solve it?

Rak'kar

  • Administrator
  • Hero Member
  • *****
  • Posts: 6895
  • Karma: 291
    • View Profile
    • RakNet
Re: RakNetPageRow does not has datas, and keys interface
« Reply #1 on: May 10, 2012, 09:10:44 AM »
I don't think that data structure was exported through SWIG and I'm not immediately sure how to do it. What do you need it for?

bendaowei

  • Not-a-newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: RakNetPageRow does not has datas, and keys interface
« Reply #2 on: May 10, 2012, 11:53:21 PM »
You have a RoomPlugin and RoomSample in C++ language. We translated it but and the corresponding C# class RakNetPage does not contain methods to access datas and keys. (If there is no one good solution, we have to remove the usage of the page class).

Rak'kar

  • Administrator
  • Hero Member
  • *****
  • Posts: 6895
  • Karma: 291
    • View Profile
    • RakNet
Re: RakNetPageRow does not has datas, and keys interface
« Reply #3 on: May 15, 2012, 11:38:04 AM »
Unfortunately, I just don't know how to export that. By the way, look into CloudServer / CloudClient which was designed to replace rooms plugin.