/Engine/Source/Runtime/Core/Public/Serialization/LargeMemoryWriter.h
Also returns the pointer, so that the caller only needs to call this function to take control of the memory.
uint8 * ReleaseOwnership()