FBulkDataBuffer

Used to manage a raw data buffer provided by BulkData while providing access to it via a [TArrayView](API\Runtime\Core\Containers\TArrayView).

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/Serialization/BulkDataBuffer.h

Include

#include "Serialization/BulkDataBuffer.h"

Syntax

template<typename TYPE>
class FBulkDataBuffer

Remarks

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.

Constructors

Name Description

Public function

FBulkDataBuffer()

Constructor.

Public function

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.

Public function

FBulkDataBuffer

(
    FBulkDataBuffer && Other
)

Move constructor.

Public function

FBulkDataBuffer

(
    TYPE * InBuffer,
    uint64 InNumberOfElements
)

Constructor.

Destructors

Name Description

Public function

~FBulkDataBuffer()

Destructor.

Functions

Name Description

Public function

void

 

Empty()

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

Public function Const

const ViewTy ...

 

GetView()

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

Public function

void

 

Reset

(
    TYPE * InBuffer,
    uint64 InNumberOfElements
)

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

Operators

Name Description

Public function

FBulkDataBuf ...

 

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.

Public function

FBulkDataBuf ...

 

operator=

(
    FBulkDataBuffer && Other
)

Move assignment operator.

Typedefs

Name

Description

ViewType

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback