Core: StreamContainerRaw optimised for large data

This commit is contained in:
Mirek Fidler 2025-07-20 10:43:49 +02:00
parent 3ae0f0b7c2
commit 2a9fd08166

View file

@ -14,7 +14,7 @@ void StreamContainerRaw(Stream& s, T& cont)
while(n > 0) {
int count = min(n, 65536);
int q = cont.GetCount();
cont.SetCount(q + count);
cont.InsertN(q, count);
s.SerializeRaw(cont.begin() + q, count);
n -= count;
}