Memory output device. 更多...
#include <OutputDeviceMemory.h>
继承自 FOutputDevice .
Public 成员函数 | |
| virtual void | Dump (FArchive &Ar) override |
| Dumps the contents of the buffer to an archive | |
| virtual void | Flush () override |
| Flush the write cache so the file isn't truncated in case we crash right after calling this function. | |
| FOutputDeviceMemory (int32 InPreserveSize=256 *1024, int32 InBufferSize=2048 *1024, bool bInSuppressEventTag=false) | |
| Constructor, initializing member variables. 更多... | |
| virtual void | TearDown () override |
| Closes output device and cleans up. 更多... | |
Memory output device.
Logs only into pre-allocated memory buffer.
| FOutputDeviceMemory::FOutputDeviceMemory | ( | int32 | InPreserveSize = 256 *1024, |
| int32 | InBufferSize = 2048 *1024, |
||
| bool | bInSuppressEventTag = false |
||
| ) |
Constructor, initializing member variables.
| InPreserveSize | Bytes of the rung buffer not to overwrite (startup info etc) |
| InBufferSize | Maximum size of the memory ring buffer |
|
overridevirtual |
Closes output device and cleans up.
This can't happen in the destructor as we have to call "delete" which cannot be done for static/ global objects.