Merge pull request #1947 from sehraf/pr_fix_RawMemoryWrapper

fix RawMemoryWrapper serialization to json
This commit is contained in:
G10h4ck 2020-05-18 09:24:52 +02:00 committed by GitHub
commit 6714648e53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -599,7 +599,8 @@ void RsTypeSerializer::RawMemoryWrapper::serial_process(
RsBase64::encode(first, second, encodedValue, true, false);
ctx.mJson.SetString(
encodedValue.data(),
static_cast<rapidjson::SizeType>(encodedValue.length()) );
static_cast<rapidjson::SizeType>(encodedValue.length()),
ctx.mJson.GetAllocator());
break;
}
case RsGenericSerializer::FROM_JSON: