mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
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:
parent
decb7442bc
commit
29bd4795fd
8 changed files with 364 additions and 26 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue