Ark Server API (ASA) - Wiki
|
#include <OutputDeviceMemory.h>
Classes | |
class | FOutputDeviceMemoryProxyArchive |
Private Member Functions | |
void | SerializeToBuffer (ANSICHAR *Data, int32 Length) |
Private Attributes | |
FOutputDeviceMemory::FOutputDeviceMemoryProxyArchive | ArchiveProxy |
TArray< ANSICHAR > | Buffer |
int32 | BufferStartPos |
int32 | BufferLength |
int32 | PreserveSize |
FCriticalSection | BufferPosCritical |
Additional Inherited Members | |
Protected Attributes inherited from FOutputDevice | |
bool | bSuppressEventTag |
bool | bAutoEmitLineTerminator |
Memory output device. Logs only into pre-allocated memory buffer.
Definition at line 16 of file OutputDeviceMemory.h.
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 |
Reimplemented from FOutputDevice.
Definition at line 59 of file OutputDeviceMemory.h.
Reimplemented from FOutputDevice.
Definition at line 63 of file OutputDeviceMemory.h.
Dumps the contents of the buffer to an archive
Reimplemented from FOutputDevice.
Flush the write cache so the file isn't truncated in case we crash right after calling this function.
Reimplemented from FOutputDevice.
Reimplemented from FOutputDevice.
Definition at line 67 of file OutputDeviceMemory.h.
|
overridevirtual |
|
overridevirtual |
Serialize cast data to the actual memory buffer
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.
Reimplemented from FOutputDevice.
|
private |
|
private |
Ring buffer
Definition at line 79 of file OutputDeviceMemory.h.
|
private |
Used data size
Definition at line 83 of file OutputDeviceMemory.h.
|
private |
Sync object for the buffer pos
Definition at line 87 of file OutputDeviceMemory.h.
|
private |
Position where data starts in the buffer
Definition at line 81 of file OutputDeviceMemory.h.
|
private |
Amount of data not to overwrite
Definition at line 85 of file OutputDeviceMemory.h.