Navigation
API > API/Runtime > API/Runtime/CoreUObject
Note that these lock structures only work with the templated versions of FBulkData, such as FByteBulkData or FFloatBulkData because they need to know the format of the bulkdata payload which the base class FBulkData cannot provide. Locks the given bulkdata object for read access
| Name | TBulkDataScopedReadLock |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Serialization/BulkDataScopedLock.h |
| Include Path | #include "Serialization/BulkDataScopedLock.h" |
Syntax
template<typename ElementType>
class TBulkDataScopedReadLock
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Serialization/BulkDataScopedLock.h | |||
TBulkDataScopedReadLock
(
const TBulkDataScopedReadLock& |
Serialization/BulkDataScopedLock.h | ||
TBulkDataScopedReadLock
(
const TBulkData< ElementType >& InBulkData |
Serialization/BulkDataScopedLock.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TBulkDataScopedReadLock() |
Serialization/BulkDataScopedLock.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BulkData | const TBulkData< ElementType > & | Serialization/BulkDataScopedLock.h | ||
| Data | const 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 | |
const ElementType * GetData() |
Returns a raw pointer to the bulkdata payload | Serialization/BulkDataScopedLock.h | |
TConstArrayView64< ElementType > GetView() |
Returns the bulkdata payload wrapped in a TConstArrayView64 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 |
|---|---|---|---|
TBulkDataScopedReadLock & operator=
(
const TBulkDataScopedReadLock& |
Serialization/BulkDataScopedLock.h | ||
| Serialization/BulkDataScopedLock.h |