FUntypedBulkData2::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/BulkData2.h

Include

#include "Serialization/BulkData2.h"

Syntax

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss