turtle dev. Worked on serialisation, mainly, and connexion to gui.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1076 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2009-03-13 21:14:30 +00:00
parent decb7442bc
commit 29bd4795fd
8 changed files with 364 additions and 26 deletions

View file

@ -442,7 +442,7 @@ bool GetTlvString(void *data, uint32_t size, uint32_t *offset,
return true;
}
uint32_t GetTlvStringSize(std::string &in) {
uint32_t GetTlvStringSize(const std::string &in) {
return 4 + in.size();
}

View file

@ -238,7 +238,7 @@ uint32_t GetTlvUInt64Size();
bool SetTlvString(void *data, uint32_t size, uint32_t *offset, uint16_t type, std::string out);
bool GetTlvString(void *data, uint32_t size, uint32_t *offset, uint16_t type, std::string &in);
uint32_t GetTlvStringSize(std::string &in);
uint32_t GetTlvStringSize(const std::string &in);
bool SetTlvWideString(void *data, uint32_t size, uint32_t *offset, uint16_t type, std::wstring out);
bool GetTlvWideString(void *data, uint32_t size, uint32_t *offset, uint16_t type, std::wstring &in);