Ark Server API (ASA) - Wiki
|
#include <LargeMemoryData.h>
Public Member Functions | |
FLargeMemoryData (const int64 PreAllocateBytes=0) | |
~FLargeMemoryData () | |
bool | Write (void *InData, int64 InOffset, int64 InNum) |
FORCEINLINE void | Append (void *InData, int64 InNum) |
bool | Read (void *OutData, int64 InOffset, int64 InNum) const |
FORCEINLINE int64 | GetSize () const |
FORCEINLINE uint8 * | GetData () |
FORCEINLINE const uint8 * | GetData () const |
uint8 * | ReleaseOwnership () |
bool | HasData () const |
void | Reserve (int64 Size) |
Private Member Functions | |
FLargeMemoryData (const FLargeMemoryData &)=delete | |
FLargeMemoryData & | operator= (const FLargeMemoryData &)=delete |
void | GrowBuffer () |
Private Attributes | |
uint8 * | Data |
int64 | NumBytes |
int64 | MaxBytes |
Data storage for the large memory reader and writer.
Definition at line 16 of file LargeMemoryData.h.
FLargeMemoryData::~FLargeMemoryData | ( | ) |
|
privatedelete |
Non-copyable
|
inline |
Append data at the given offset.
Definition at line 27 of file LargeMemoryData.h.
|
inline |
Returns the written data.
Definition at line 42 of file LargeMemoryData.h.
|
inline |
Returns the written data.
Definition at line 48 of file LargeMemoryData.h.
|
inline |
Gets the size of the data written.
Definition at line 36 of file LargeMemoryData.h.
|
private |
Resizes the data buffer to at least NumBytes with some slack
|
inline |
Check whether data is allocated or if the ownership was released.
Definition at line 57 of file LargeMemoryData.h.
|
privatedelete |
Read data at the given offset. Returns true if the data was read.
uint8 * FLargeMemoryData::ReleaseOwnership | ( | ) |
Releases ownership of the written data.
Write data at the given offset. Returns true if the data was written.
|
private |
Memory owned by this archive. Ownership can be released by calling ReleaseOwnership()
Definition at line 71 of file LargeMemoryData.h.
|
private |
Number of bytes currently allocated for our data buffer
Definition at line 77 of file LargeMemoryData.h.
|
private |
Number of bytes currently written to our data buffer
Definition at line 74 of file LargeMemoryData.h.