![]() |
Ark Server API (ASA) - Wiki
|
#include <NameTypes.h>
Collaboration diagram for FNameEntry:Public Member Functions | |
| FORCEINLINE bool | IsWide () const |
| FORCEINLINE int32 | GetNameLength () const |
| FORCEINLINE bool | IsNumbered () const |
| void | GetUnterminatedName (TCHAR *OutName, uint32 OutSize) const |
| void | GetName (TCHAR(&OutName)[NAME_SIZE]) const |
| void | GetAnsiName (ANSICHAR(&OutName)[NAME_SIZE]) const |
| void | GetWideName (WIDECHAR(&OutName)[NAME_SIZE]) const |
| FString | GetPlainNameString () const |
| void | AppendNameToString (FString &OutString) const |
| void | AppendNameToString (FWideStringBuilderBase &OutString) const |
| void | AppendNameToString (FUtf8StringBuilderBase &OutString) const |
| void | AppendAnsiNameToString (FAnsiStringBuilderBase &OutString) const |
| void | AppendNameToPathString (FString &OutString) const |
| void | DebugDump (FOutputDevice &Out) const |
| int32 | GetSizeInBytes () const |
| void | Write (FArchive &Ar) const |
| struct FNameStringView | MakeView (union FNameBuffer &OptionalDecodeBuffer) const |
Static Public Member Functions | |
| static int32 | GetSize (int32 Length, bool bIsPureAnsi) |
| static int32 | GetSize (const TCHAR *Name) |
| static int32 | GetDataOffset () |
Private Member Functions | |
| FNameEntry (struct FClangKeepDebugInfo) | |
| FNameEntry (const FNameEntry &)=delete | |
| FNameEntry (FNameEntry &&)=delete | |
| FNameEntry & | operator= (const FNameEntry &)=delete |
| FNameEntry & | operator= (FNameEntry &&)=delete |
| void | StoreName (const ANSICHAR *InName, uint32 Len) |
| void | StoreName (const WIDECHAR *InName, uint32 Len) |
| void | CopyUnterminatedName (ANSICHAR *OutName) const |
| void | CopyUnterminatedName (WIDECHAR *OutName) const |
| void | CopyAndConvertUnterminatedName (TCHAR *OutName) const |
| const ANSICHAR * | GetUnterminatedName (ANSICHAR(&OptionalDecodeBuffer)[NAME_SIZE]) const |
| const WIDECHAR * | GetUnterminatedName (WIDECHAR(&OptionalDecodeBuffer)[NAME_SIZE]) const |
Static Private Member Functions | |
| static void | Encode (ANSICHAR *Name, uint32 Len) |
| static void | Encode (WIDECHAR *Name, uint32 Len) |
| static void | Decode (ANSICHAR *Name, uint32 Len) |
| static void | Decode (WIDECHAR *Name, uint32 Len) |
Private Attributes | ||
| FNameEntryHeader | Header | |
| union { | ||
| ANSICHAR AnsiName [NAME_SIZE] | ||
| WIDECHAR WideName [NAME_SIZE] | ||
| }; | ||
Friends | |
| class | FName |
| struct | FNameHelper |
| class | FNameEntryAllocator |
| class | FNamePoolShardBase |
A global deduplicated name stored in the global name table.
Definition at line 220 of file NameTypes.h.
|
private |
|
privatedelete |
|
privatedelete |
| void FNameEntry::AppendAnsiNameToString | ( | FAnsiStringBuilderBase & | OutString | ) | const |
Appends name to string builder. Entry must not be wide.
Appends name to string with path separator using FString::PathAppend().
Appends name to string. May allocate.
Definition at line 290 of file NameTypes.h.
|
inline |
Definition at line 301 of file NameTypes.h.
|
inline |
Appends name to string builder.
Definition at line 296 of file NameTypes.h.
|
private |
|
private |
| void FNameEntry::DebugDump | ( | FOutputDevice & | Out | ) | const |
Definition at line 1735 of file NameTypes.h.
Definition at line 1736 of file NameTypes.h.
Definition at line 1733 of file NameTypes.h.
Definition at line 1734 of file NameTypes.h.
| void FNameEntry::GetAnsiName | ( | ANSICHAR(&) | OutName[NAME_SIZE] | ) | const |
Copy null-terminated name to ANSICHAR buffer without allocating. Entry must not be wide.
Here is the caller graph for this function:| void FNameEntry::GetName | ( | TCHAR(&) | OutName[NAME_SIZE] | ) | const |
Copy null-terminated name to TCHAR buffer without allocating.
|
inline |
Definition at line 256 of file NameTypes.h.
Returns the size in bytes for FNameEntry structure. This is != sizeof(FNameEntry) as we only allocated as needed.
| Length | Length of name |
| bIsPureAnsi | Whether name is pure ANSI or not |
| int32 FNameEntry::GetSizeInBytes | ( | ) | const |
|
private |
Copy unterminated name to TCHAR buffer without allocating.
| OutSize | must be at least GetNameLength() |
|
private |
Copy null-terminated name to WIDECHAR buffer without allocating. Entry must be wide.
Here is the caller graph for this function:
|
inline |
Definition at line 261 of file NameTypes.h.
|
inline |
Returns whether this name entry is represented via WIDECHAR or ANSICHAR.
Definition at line 251 of file NameTypes.h.
Here is the caller graph for this function:| struct FNameStringView FNameEntry::MakeView | ( | union FNameBuffer & | OptionalDecodeBuffer | ) | const |
|
privatedelete |
|
privatedelete |
Definition at line 331 of file NameTypes.h.
Definition at line 333 of file NameTypes.h.
Definition at line 332 of file NameTypes.h.
Definition at line 334 of file NameTypes.h.
| union { ... } FNameEntry |
| ANSICHAR FNameEntry::AnsiName[NAME_SIZE] |
Definition at line 229 of file NameTypes.h.
|
private |
Definition at line 226 of file NameTypes.h.
Definition at line 230 of file NameTypes.h.