Navigation
API > API/Runtime > API/Runtime/CoreUObject
Locks the given bulkdata object for read/write access. Note that performing actions on the original bulkdata object while this scope is active (such as calls to realloc) may cause problems. Only use this object for bulkdata operations while it is active.
| Name | TBulkDataScopedWriteLock |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Serialization/BulkDataScopedLock.h |
| Include Path | #include "Serialization/BulkDataScopedLock.h" |
Syntax
template<typename ElementType>
class TBulkDataScopedWriteLock
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Serialization/BulkDataScopedLock.h | |||
TBulkDataScopedWriteLock
(
const TBulkDataScopedWriteLock& |
Serialization/BulkDataScopedLock.h | ||
TBulkDataScopedWriteLock
(
TBulkData< ElementType >& InBulkData |
Serialization/BulkDataScopedLock.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TBulkDataScopedWriteLock() |
Serialization/BulkDataScopedLock.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BulkData | TBulkData< ElementType > & | Serialization/BulkDataScopedLock.h | ||
| Data | ElementType * | Serialization/BulkDataScopedLock.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int64 GetAllocatedSize() |
Returns the length of the bulkdata payload in bytes | Serialization/BulkDataScopedLock.h | |
ElementType * GetData() |
Returns a raw pointer to the bulkdata payload | Serialization/BulkDataScopedLock.h | |
TArrayView64< ElementType > GetView() |
Returns the bulkdata payload wrapped in a TArrayView64 for added safety | Serialization/BulkDataScopedLock.h | |
int64 Num() |
Returns the number of elements in the bulkdata payload | Serialization/BulkDataScopedLock.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TBulkDataScopedWriteLock & operator=
(
const TBulkDataScopedWriteLock& |
Serialization/BulkDataScopedLock.h | ||
| Serialization/BulkDataScopedLock.h |