UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VVMNativeAllocationGuard.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#if WITH_VERSE_VM || defined(__INTELLISENSE__)
6
7#include "VVMHeap.h"
8
9namespace Verse
10{
11
12template <typename THolder>
14{
18 {
19 }
20
22 {
23 FHeap::ReportAllocatedNativeBytes(Holder->GetAllocatedSize() - PreviousAllocatedSize);
24 }
25
26private:
29};
30
31} // namespace Verse
32#endif // WITH_VERSE_VM
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
SIZE_T GetAllocatedSize(const T &Value)
Definition ManagedArray.h:93
Definition Archive.h:36