Navigation
API > API/Runtime > API/Runtime/CoreUObject
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.
| Name | FBulkDataBuffer |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Serialization/BulkDataBuffer.h |
| Include Path | #include "Serialization/BulkDataBuffer.h" |
Syntax
template<typename DataType>
class FBulkDataBuffer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Constructor. | Serialization/BulkDataBuffer.h | ||
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. | Serialization/BulkDataBuffer.h | |
FBulkDataBuffer
(
FBulkDataBuffer&& Other |
Move constructor. | Serialization/BulkDataBuffer.h | |
FBulkDataBuffer
(
DataType* InBuffer, |
Constructor. | Serialization/BulkDataBuffer.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FBulkDataBuffer() |
Destructor. | Serialization/BulkDataBuffer.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ViewType | TArrayView64< DataType > | Serialization/BulkDataBuffer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| View | ViewType | Serialization/BulkDataBuffer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Empty() |
Frees the internal buffer and sets the internal TArrayView to an empty state | Serialization/BulkDataBuffer.h | |
const ViewType & GetView() |
Allows access to the data buffer owned by the object in the form of a TArrayView | Serialization/BulkDataBuffer.h | |
void Reset
(
DataType* InBuffer, |
Frees any existing buffer and takes ownership of the buffer provided instead. | Serialization/BulkDataBuffer.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
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. | Serialization/BulkDataBuffer.h | |
FBulkDataBuffer & operator=
(
FBulkDataBuffer&& Other |
Move assignment operator. | Serialization/BulkDataBuffer.h |