Add GetStringAnsiView to json value

This commit is contained in:
Wojtek Figat
2021-06-17 14:14:10 +02:00
parent 5ca2729a56
commit aa83af477a
7 changed files with 9 additions and 7 deletions

View File

@@ -536,7 +536,7 @@ namespace Serialization
else if (stream.IsString())
{
// byte[] encoded as Base64
const StringAnsiView streamView(stream.GetString(), stream.GetStringLength());
const StringAnsiView streamView(stream.GetStringAnsiView());
v.Resize(Encryption::Base64DecodeLength(*streamView, streamView.Length()));
Encryption::Base64Decode(*streamView, streamView.Length(), v.Get());
}