TCachedStringStore

A deduplicating persistent string store.

Unreal Engine C++ API Reference > Developer > TraceServices > Common

References

   
Module TraceServices
Header /Engine/Source/Developer/TraceServices/Public/Common/CachedStringStore.h
Include #include "Common/CachedStringStore.h"

Syntax

template<typename CharType>  
class TCachedStringStore  

Remarks

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.

Constructors

Type Name Description
  TCachedStringStore ( const TCHAR* InCacheIdentifier, IAnalysisCache& InCache ) Create a persistent string store.

Destructors

Type Name Description
  ~TCachedStringStore ()  

Functions

Type Name Description
uint64 AllocatedSize () Get the total number of bytes used. Note that this does ot account for unused block space.
uint64 GetOffsetOfString ( const TCHAR* String ) Gets the offset of a string previously stored string.
const CharTy... GetStringAtOffset ( uint64 OffsetBytes ) Resolve an offset to a c string.
uint32 Num () Get the number of unique stored string.
uint64 Store_GetOffset ( const CharType* String ) Store a string, get offset back.
uint64 Store_GetOffset ( const StringViewType String ) Store a string, get offset back.
const CharTy... Store_GetString ( const CharType* String ) Store a string, get string back.
const CharTy... Store_GetString ( const StringViewType String ) Store a string, get string back.

Typedefs

Name Description
StringViewType  

Constants

Name Description
BlockSize  

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library