[editor/util] fix: toBase64 size设置有误导致编码错误
parent
50a1bdaff4
commit
fef34280c6
|
@ -9,7 +9,7 @@ namespace EncodeUtil
|
||||||
{
|
{
|
||||||
QByteArray ba;
|
QByteArray ba;
|
||||||
ba.resize(vec.size() * sizeof(S));
|
ba.resize(vec.size() * sizeof(S));
|
||||||
memcpy_s(ba.data(), ba.size(), vec.data(), vec.size());
|
memcpy_s(ba.data(), ba.size(), vec.data(), vec.size() * sizeof(S));
|
||||||
return ba.toBase64();
|
return ba.toBase64();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue