CachingStructLoader.onStoringData

This method is called before storing new entry into the cache. It can be used to do any adjustments necessary for specific cached type. Does nothing by default which is most common case for exsting caches.

If overridden this method must always modify data in-place

class CachingStructLoader(S)
protected
void
onStoringData
(
Contiguous!(S) data
)

Parameters

data Contiguous!(S)

deserialized element data, use data.ptr to access it as S*

Meta