mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Merge pull request #1947 from sehraf/pr_fix_RawMemoryWrapper
fix RawMemoryWrapper serialization to json
This commit is contained in:
commit
6714648e53
@ -599,7 +599,8 @@ void RsTypeSerializer::RawMemoryWrapper::serial_process(
|
|||||||
RsBase64::encode(first, second, encodedValue, true, false);
|
RsBase64::encode(first, second, encodedValue, true, false);
|
||||||
ctx.mJson.SetString(
|
ctx.mJson.SetString(
|
||||||
encodedValue.data(),
|
encodedValue.data(),
|
||||||
static_cast<rapidjson::SizeType>(encodedValue.length()) );
|
static_cast<rapidjson::SizeType>(encodedValue.length()),
|
||||||
|
ctx.mJson.GetAllocator());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case RsGenericSerializer::FROM_JSON:
|
case RsGenericSerializer::FROM_JSON:
|
||||||
|
Loading…
Reference in New Issue
Block a user