![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <BulkDataBuffer.h>
Public Types | |
| using | ViewType = TArrayView64< DataType > |
Public Member Functions | |
| FBulkDataBuffer ()=default | |
| FBulkDataBuffer (const FBulkDataBuffer &Other) | |
| FBulkDataBuffer (FBulkDataBuffer &&Other) | |
| FBulkDataBuffer (DataType *InBuffer, int64 InNumberOfElements) | |
| ~FBulkDataBuffer () | |
| FBulkDataBuffer & | operator= (const FBulkDataBuffer &Other) |
| FBulkDataBuffer & | operator= (FBulkDataBuffer &&Other) |
| void | Empty () |
| void | Reset (DataType *InBuffer, uint64 InNumberOfElements) |
| const ViewType & | GetView () const |
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.
| using FBulkDataBuffer< DataType >::ViewType = TArrayView64<DataType> |
|
default |
Constructor.
|
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 |
Destructor.
|
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. |