UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
StackRange.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#if (defined(__AUTORTFM) && __AUTORTFM)
6
7namespace AutoRTFM
8{
9
10// FStackRange represents a stack memory range.
11// It is assumed the stack grows downwards.
12struct FStackRange
13{
14 void* Low = nullptr; // One byte past the end of the stack range.
15 void* High = nullptr; // The first byte of the stack range.
16
17 // Returns true if the stack range contains Address
18 bool Contains(const void* Address) const { return Address > Low && Address <= High; }
19
20 // Equality operator
21 bool operator == (const FStackRange& Other) const { return Low == Other.Low && High == Other.High; }
22 // In-equality operator
23 bool operator != (const FStackRange& Other) const { return !(*this == Other); }
24};
25
26} // namespace AutoRTFM
27
28#endif // (defined(__AUTORTFM) && __AUTORTFM)
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE_FORCEINLINE_HINT bool operator!=(const FIndexedPointer &Other) const
Definition LockFreeList.h:76
Definition API.cpp:57
@ Contains
Definition AutomationTest.h:160