mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-27 23:57:38 -04:00
moved turtle and FT to new serialization
This commit is contained in:
parent
3453a3e57d
commit
636450f14d
12 changed files with 419 additions and 161 deletions
|
@ -32,7 +32,7 @@
|
|||
//*********************
|
||||
|
||||
// A facility func
|
||||
inline void* right_shift_void_pointer(void* p, uint32_t len) {
|
||||
inline void* right_shift_void_pointer(const void* p, uint32_t len) {
|
||||
|
||||
return (void*)( (uint8_t*)p + len);
|
||||
}
|
||||
|
@ -550,7 +550,7 @@ static bool find_decoded_string(const std::string& in,const std::string& suspici
|
|||
}
|
||||
|
||||
//tested
|
||||
bool GetTlvString(void *data, uint32_t size, uint32_t *offset,
|
||||
bool GetTlvString(const void *data, uint32_t size, uint32_t *offset,
|
||||
uint16_t type, std::string &in)
|
||||
{
|
||||
if (!data)
|
||||
|
|
|
@ -275,7 +275,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);
|
||||
bool GetTlvString(const void *data, uint32_t size, uint32_t *offset, uint16_t type, std::string &in);
|
||||
uint32_t GetTlvStringSize(const std::string &in);
|
||||
|
||||
#ifdef REMOVED_CODE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue