Files
UnrealEngineUWP/Engine/Source/Developer/Virtualization
paul chipchase 909615801d Fix the VA filesystem backend from failing to serialize pushed payloads correctly.
#rb Per.Larsson
#jira UE-170012
#rnx
#preflight 63724fa79e3bea8079f2ed76

- The original for loop was added at a time where FCompressedBuffer did not support serialization directly, at that time the code worked.
- Now it looks like the FCompressedBuffer returned by the call to ::GetPayload is going out of scope early, which means that the FSharedBuffer ends up zero length (and quite possibly unsafe to use)
- However nowadays FCompressedBuffer has both a operator<< and direct ::Load/::Save methods so we can remove the for loop and simplify the code.

[CL 23133173 by paul chipchase in ue5-main branch]
2022-11-15 03:18:08 -05:00
..