mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Core: StreamContainerRaw optimised for large data
This commit is contained in:
parent
3ae0f0b7c2
commit
2a9fd08166
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue