UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
NetNameDebug.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6
7#if UE_NET_REPACTOR_NAME_DEBUG
8#include "UObject/NameTypes.h"
10
16#define UE_NET_ALLOCA_NAME_DEBUG_BUFFER() \
17 reinterpret_cast<PTRINT>(FMemory_Alloca_Aligned(sizeof(FNameDebugBuffer), alignof(FNameDebugBuffer)))
18
19namespace UE::Net
20{
23};
24
25namespace UE::Net::Private
26{
28 struct FNameDebugBuffer
29 {
30 static constexpr int32 MaxNameAppend = 128;
31
32 union
33 {
34 volatile ANSICHAR Ansi[NAME_SIZE + MaxNameAppend];
35 volatile WIDECHAR Wide[NAME_SIZE + MaxNameAppend];
36 };
37
39 bool bIsWide;
40 };
41
42
45
47 void StoreFullName(PTRINT BufferPtr, const UObject* InObj);
48
50 void StoreSubObjectName(PTRINT BufferPtr, FName ClassName, FName ObjName, const UObject* InObj);
51
52 inline void StoreSubObjectName(PTRINT BufferPtr, const FSubObjectRegistry::FEntry& SubObjectInfo)
53 {
54 StoreSubObjectName(BufferPtr, SubObjectInfo.SubObjectClassName, SubObjectInfo.SubObjectName, SubObjectInfo.GetSubObject());
55 }
56
57 inline void StoreSubObjectName(PTRINT BufferPtr, const FReplicatedComponentInfo& ComponentInfo)
58 {
59 StoreSubObjectName(BufferPtr, ComponentInfo.ComponentClassName, ComponentInfo.ComponentName, (UObject*)ComponentInfo.Component);
60 }
61};
62#endif
FPlatformTypes::PTRINT PTRINT
A signed integer the same size as a pointer.
Definition Platform.h:1148
FPlatformTypes::WIDECHAR WIDECHAR
A wide character. Normally a signed type.
Definition Platform.h:1133
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
FPlatformTypes::ANSICHAR ANSICHAR
An ANSI character. Normally a signed type.
Definition Platform.h:1131
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
@ NAME_SIZE
Definition NameTypes.h:57
Definition NameTypes.h:617
Definition Object.h:95
Definition NetworkVersion.cpp:28
Definition NetworkVersion.cpp:28