![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Typedefs | |
| typedef TStringBuilder< ConversionBufferSize > | FJsonStringBuilder |
Functions | |
| int | ComputeAttributeSize (const FAnalyticsEventAttribute &Attribute) |
| int | ComputeAttributeSize (const TArray< FAnalyticsEventAttribute > &Attributes) |
| int | ComputeEventSize (const FString &EventName, const TArray< FAnalyticsEventAttribute > &Attributes, int CurrentDefaultAttributeSizeEstimate) |
| void | AppendString (TArray< uint8 > &UTF8Stream, const ANSICHAR *UTF8Chars, int32 CharCount) |
| void | AppendString (TArray< uint8 > &UTF8Stream, const TCHAR *Str, int32 Len) |
| void | AppendString (TArray< uint8 > &UTF8Stream, const FString &Str) |
| void | AppendString (TArray< uint8 > &UTF8Stream, const FJsonStringBuilder &str) |
| void | AppendJsonString (TArray< uint8 > &UTF8Stream, FJsonStringBuilder &JsonStringBuilder, const FString &str, bool bIsJsonFragment) |
| void | AppendEventAttribute (TArray< uint8 > &UTF8Stream, FJsonStringBuilder &JsonStringBuilder, const FAnalyticsEventAttribute &Attr) |
| void | InitializePayloadBuffer (TArray< uint8 > &Buffer, int32 MaximumPayloadSize) |
Variables | |
| FAutoConsoleVariableRef | CvarPayloadPercentageOfMaxForWarning (TEXT("AnalyticsET.PayloadPercentageOfMaxForWarning"), PayloadPercentageOfMaxForWarning,) |
| FAutoConsoleVariableRef | CvarPayloadFlushTimeSecForWarning (TEXT("AnalyticsET.PayloadFlushTimeSecForWarning"), PayloadFlushTimeSecForWarning,) |
| bool | bUseZeroDateOffset = false |
| constexpr int32 | ConversionBufferSize = 512 |
| const ANSICHAR * | PayloadTemplate = "{\"Events\":[]}" |
| const int32 | PayloadTemplateLength = 13 |
| const ANSICHAR * | PayloadTrailer = "]}" |
| const int32 | PayloadTrailerLength = 2 |
|
inline |
Append an AnalyticsEventAttribute to a UTF8 stream: ,"<NAME>":
|
inline |
Append a Json string to a UTF8 stream. Escapes the string, adds quotes, and converts it to UTF8 in temp space. Does NOT add a NULL terminator. If it's a JsonFragment, doesn't escape or add the quotes.
|
inline |
Appends UTF8 chars directly to a UTF8 stream. Must already be properly UTF8 encoded. Does NOT add a NULL terminator.
|
inline |
Appends an TStringBuilder efficiently into a UTF8 stream. Does NOT add a NULL terminator.
Appends an FString efficiently into a UTF8 stream. Does NOT add a NULL terminator.
|
inline |
Appends a TCHAR* string (need not be null-terminated) to a UTF8 stream. Converts the string directly into the UTF8Stream. Does NOT add a NULL terminator.
This function is highly optimized for efficiency. writes directly into the output stream without precomputing the string length. Optimistically adds a bit of space to handle ocassional multibyte chars, but keeps growing until it fits. In practice, this makes this function 30-40% faster than precomputing the string length in advance, and over 2x faster than usig FStringConversion<> directly, even with an appropriately sized buffer.
|
inline |
|
inline |
|
inline |
|
inline |
| FAutoConsoleVariableRef EventCacheStatic::CvarPayloadFlushTimeSecForWarning(TEXT("AnalyticsET.PayloadFlushTimeSecForWarning"), PayloadFlushTimeSecForWarning,) | ( | TEXT("AnalyticsET.PayloadFlushTimeSecForWarning") | , |
| PayloadFlushTimeSecForWarning | |||
| ) |
| FAutoConsoleVariableRef EventCacheStatic::CvarPayloadPercentageOfMaxForWarning(TEXT("AnalyticsET.PayloadPercentageOfMaxForWarning"), PayloadPercentageOfMaxForWarning,) | ( | TEXT("AnalyticsET.PayloadPercentageOfMaxForWarning") | , |
| PayloadPercentageOfMaxForWarning | |||
| ) |
| const ANSICHAR* EventCacheStatic::PayloadTemplate = "{\"Events\":[]}" |
| const int32 EventCacheStatic::PayloadTemplateLength = 13 |
| const ANSICHAR* EventCacheStatic::PayloadTrailer = "]}" |
| const int32 EventCacheStatic::PayloadTrailerLength = 2 |