Used to manage a raw data buffer provided by BulkData while providing access to it via a TArrayView. 更多...
#include <BulkDataBuffer.h>
Public 成员函数 | |
| void | Empty () |
| Frees the internal buffer and sets the internal TArrayView to an empty state 更多... | |
| FBulkDataBuffer ()=default | |
| Constructor. | |
| FBulkDataBuffer (const FBulkDataBuffer &Other) | |
| Copy constructor which will create it's own memory buffer and then copy from the source object rather than share access to the same buffer. 更多... | |
| FBulkDataBuffer (DataType *InBuffer, uint64 InNumberOfElements) | |
| Constructor. 更多... | |
| FBulkDataBuffer (FBulkDataBuffer &&Other) | |
| Move constructor. 更多... | |
| const ViewType & | GetView () const |
| Allows access to the data buffer owned by the object in the form of a TArrayView 更多... | |
| FBulkDataBuffer & | operator= (const FBulkDataBuffer &Other) |
| Assignment operator which will create it's own memory buffer and then copy from the source object rather than share access to the same buffer. 更多... | |
| FBulkDataBuffer & | operator= (FBulkDataBuffer &&Other) |
| Move assignment operator. 更多... | |
| void | Reset (DataType *InBuffer, uint64 InNumberOfElements) |
| Frees any existing buffer and takes ownership of the buffer provided instead. 更多... | |
| ~FBulkDataBuffer () | |
| Destructor. | |
Used to manage a raw data buffer provided by BulkData while providing access to it via a TArrayView.
This object assumes that it owns the buffer that it has been given and will free the memory when the object is destroyed.
|
inline |
Copy constructor which will create it's own memory buffer and then copy from the source object rather than share access to the same buffer.
| Other | The source array to copy. |
|
inline |
Move constructor.
| Other | FBulkDataBuffer to move from. |
|
inline |
Constructor.
| InBuffer | Pointer to memory to take ownership of, must've have been allocated via FMemory::Malloc/Realloc. |
| InNumberOfElements | The number of elements in the buffer. |
|
inline |
Frees the internal buffer and sets the internal TArrayView to an empty state
|
inline |
Allows access to the data buffer owned by the object in the form of a TArrayView
|
inline |
Assignment operator which will create it's own memory buffer and then copy from the source object rather than share access to the same buffer.
| Other | The source FBulkDataBuffer to assign from. |
|
inline |
Move assignment operator.
| Other | FBulkDataBuffer to assign and move from. |
|
inline |
Frees any existing buffer and takes ownership of the buffer provided instead.
| InBuffer | Pointer to memory to take ownership of, must've have been allocated via FMemory::Malloc/Realloc. |
| InNumberOfElements | The number of elements in the buffer. buffers actual size if desired. |