Navigation
API > API/Developer > API/Developer/TraceServices
A deduplicating persistent string store. Allows users to store a string in a session and retrieve it at a given offset in consecutive sessions. The store uses analysis cache to store the strings. The store is not thread safe.
| Name | TCachedStringStore |
| Type | class |
| Header File | /Engine/Source/Developer/TraceServices/Public/Common/CachedStringStore.h |
| Include Path | #include "Common/CachedStringStore.h" |
Syntax
template<typename CharType>
class TCachedStringStore
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TCachedStringStore
(
const TCHAR* InCacheIdentifier, |
Create a persistent string store. | Common/CachedStringStore.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TCachedStringStore() |
Common/CachedStringStore.h |
Structs
| Name | Remarks |
|---|---|
| FPersistentState |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| StringViewType | TStringView< CharType > | Common/CachedStringStore.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| BlockSize | uint32 | Common/CachedStringStore.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Blocks | TArray< FSharedBuffer > | Common/CachedStringStore.h | ||
| BufferCursor | CharType * | Common/CachedStringStore.h | ||
| Cache | IAnalysisCache & | Common/CachedStringStore.h | ||
| CacheIndex | uint32 | Common/CachedStringStore.h | ||
| State | FPersistentState * | Common/CachedStringStore.h | ||
| StoredStrings | TMap< uint32, TTuple< uint64, const CharType * > > | Common/CachedStringStore.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint64 AllocatedSize() |
Get the total number of bytes used. Note that this does ot account for unused block space. | Common/CachedStringStore.h | |
uint64 GetOffsetOfString
(
const TCHAR* String |
Gets the offset of a string previously stored string. | Common/CachedStringStore.h | |
const CharType * GetStringAtOffset
(
uint64 OffsetBytes |
Resolve an offset to a c string. | Common/CachedStringStore.h | |
uint32 Num() |
Get the number of unique stored string. | Common/CachedStringStore.h | |
uint64 Store_GetOffset
(
const CharType* String |
Store a string, get offset back. | Common/CachedStringStore.h | |
uint64 Store_GetOffset
(
const StringViewType String |
Store a string, get offset back. | Common/CachedStringStore.h | |
const CharType * Store_GetString
(
const CharType* String |
Store a string, get string back. | Common/CachedStringStore.h | |
const CharType * Store_GetString
(
const StringViewType String |
Store a string, get string back. | Common/CachedStringStore.h |