FUntypedBulkData::GetCopyAsBuffer

Returns a copy encapsulated by a [FBulkDataBuffer](API\Runtime\CoreUObject\Serialization\FBulkDataBuffer).

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "Serialization/BulkData.h"

Syntax

template<typename ElementType>
FBulkDataBuffer < ElementType > GetCopyAsBuffer
(
    int64 RequestedElementCount,
    bool bDiscardInternalCopy
)

Remarks

Returns a copy encapsulated by a FBulkDataBuffer .

Returns

A FBulkDataBuffer that owns a copy of the BulkData, this might be a subset of the data depending on the value of RequestedSize.

Parameters

Parameter

Description

RequestedElementCount

If set to greater than 0, the returned FBulkDataBuffer will be limited to this number of elements. This will give an error if larger than the actual number of elements in the BulkData object.

bDiscardInternalCopy

If true then the BulkData object will free it's internal buffer once called.

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