UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
NetDebugName.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "Misc/CString.h"
7
8namespace UE::Net
9{
10
15
17{
18 const TCHAR* Name = nullptr;
20};
21
22
25
27
28}
29
30inline const TCHAR* ToCStr(const UE::Net::FNetDebugName* DebugName)
31{
32 if (DebugName && DebugName->Name)
33 {
34 return DebugName->Name;
35 }
36 else
37 {
38 return TEXT("N/A");
39 }
40}
41
42
#define TEXT(x)
Definition Platform.h:1272
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
const TCHAR * ToCStr(const UE::Net::FNetDebugName *DebugName)
Definition NetDebugName.h:30
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition NetworkVersion.cpp:28
uint32 FNetDebugNameId
Definition NetDebugName.h:14
const FNetDebugName * CreatePersistentNetDebugName(const TCHAR *Name, uint32 NameLen)
Definition PersistentNetDebugNames.cpp:110
void ResetPersistentNetDebugNameIds()
Definition PersistentNetDebugNames.cpp:118
static int32 Strlen(const CharType *String)
Definition CString.h:1047
Definition NetDebugName.h:17
FNetDebugNameId DebugNameId
Definition NetDebugName.h:19
const TCHAR * Name
Definition NetDebugName.h:18