FUntypedBulkData::GetCopyAsBuffer

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

Choose your operating system:

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.