engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FBulkDataBuffer< DataType > 模板类 参考

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.
 

详细描述

template<typename DataType>
class FBulkDataBuffer< DataType >

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.

构造及析构函数说明

◆ FBulkDataBuffer() [1/3]

template<typename DataType >
FBulkDataBuffer< DataType >::FBulkDataBuffer ( const FBulkDataBuffer< DataType > &  Other)
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.

参数
OtherThe source array to copy.

◆ FBulkDataBuffer() [2/3]

template<typename DataType >
FBulkDataBuffer< DataType >::FBulkDataBuffer ( FBulkDataBuffer< DataType > &&  Other)
inline

Move constructor.

参数
OtherFBulkDataBuffer to move from.

◆ FBulkDataBuffer() [3/3]

template<typename DataType >
FBulkDataBuffer< DataType >::FBulkDataBuffer ( DataType *  InBuffer,
uint64  InNumberOfElements 
)
inline

Constructor.

参数
InBufferPointer to memory to take ownership of, must've have been allocated via FMemory::Malloc/Realloc.
InNumberOfElementsThe number of elements in the buffer.

成员函数说明

◆ Empty()

template<typename DataType >
void FBulkDataBuffer< DataType >::Empty ( )
inline

Frees the internal buffer and sets the internal TArrayView to an empty state

◆ GetView()

template<typename DataType >
const ViewType & FBulkDataBuffer< DataType >::GetView ( ) const
inline

Allows access to the data buffer owned by the object in the form of a TArrayView

返回
A valid TArrayView

◆ operator=() [1/2]

template<typename DataType >
FBulkDataBuffer & FBulkDataBuffer< DataType >::operator= ( const FBulkDataBuffer< DataType > &  Other)
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.

参数
OtherThe source FBulkDataBuffer to assign from.

◆ operator=() [2/2]

template<typename DataType >
FBulkDataBuffer & FBulkDataBuffer< DataType >::operator= ( FBulkDataBuffer< DataType > &&  Other)
inline

Move assignment operator.

参数
OtherFBulkDataBuffer to assign and move from.

◆ Reset()

template<typename DataType >
void FBulkDataBuffer< DataType >::Reset ( DataType *  InBuffer,
uint64  InNumberOfElements 
)
inline

Frees any existing buffer and takes ownership of the buffer provided instead.

参数
InBufferPointer to memory to take ownership of, must've have been allocated via FMemory::Malloc/Realloc.
InNumberOfElementsThe number of elements in the buffer. buffers actual size if desired.

该类的文档由以下文件生成: