Ritchie's Abstractions 0.2
Platform abstractions that make Toolbox work
Loading...
Searching...
No Matches
CacheState Class Referencesealed

An object that can be used to track the state of a cache. More...

Public Member Functions

void Update ()
 Update the current cache state.
 
bool CheckState (ref ulong previousState)
 Takes a reference to memory containing a cache state value, and checks if the cache is invalid with respect to this CacheState instance.
 

Detailed Description

An object that can be used to track the state of a cache.

Member Function Documentation

◆ CheckState()

bool CheckState ( ref ulong previousState)
inline

Takes a reference to memory containing a cache state value, and checks if the cache is invalid with respect to this CacheState instance.

Parameters
previousStateA reference to a field containing a cache state value.
Returns
True if the cache is invalid, false otherwise.

If the cache is invalid, the given reference will be updated with the new cache state.


The documentation for this class was generated from the following file: