UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VVMScope.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#if WITH_VERSE_VM || defined(__INTELLISENSE__)
5
6#include "VVMClass.h"
8#include "VVMWriteBarrier.h"
9
10namespace Verse
11{
13struct VScope : VCell
14{
17
19
20 // Variables free in this scope but not free in `ParentScope`.
21 const uint32 NumCaptures;
23
24 static VScope& New(FAllocationContext, VScope* ParentScope, uint32 NumCaptures);
25 static VScope& New(FAllocationContext, VClass* SuperClass);
26 static VScope& New(FAllocationContext Context);
27 static VScope& NewUninitialized(FAllocationContext, uint32 NumCaptures);
28
29 VScope& GetRootScope();
30
31 static void SerializeLayout(FAllocationContext, VScope*& This, FStructuredArchiveVisitor&);
32 void SerializeImpl(FAllocationContext, FStructuredArchiveVisitor&);
33
34private:
35 static size_t NumBytes(uint32 NumCaptures);
36
37 VScope(FAllocationContext, VScope* ParentScope, uint32 NumCaptures);
38};
39} // namespace Verse
40#endif // WITH_VERSE_VM
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
T * New(FMemStackBase &Mem, int32 Count=1, int32 Align=DEFAULT_ALIGNMENT)
Definition MemStack.h:259
uint32_t uint32
Definition binka_ue_file_header.h:6
bool SerializeImpl(const UScriptStruct *InSourceEventType, const void *InSourceEventData, FLiveLinkSerializedFrameData &OutSerializedData)
Definition LiveLinkCompression.cpp:126
Definition Archive.h:36