in include/SPTPersistentCache/SPTPersistentCacheImplementation.h [33:67]
typedef NS_ENUM(NSInteger, SPTPersistentCacheLoadingError) {
/**
Magic number in record header is not as expected which means file is not readable by this cache.
*/
SPTPersistentCacheLoadingErrorMagicMismatch = 100,
/**
Alignment of pointer which casted to header is not compatible with alignment of first header field.
*/
SPTPersistentCacheLoadingErrorHeaderAlignmentMismatch,
/**
Size of header is not as expected. This is possibly because of a version change.
*/
SPTPersistentCacheLoadingErrorWrongHeaderSize,
/**
Payload size in header is not the same as stored in cache record.
*/
SPTPersistentCacheLoadingErrorWrongPayloadSize,
/**
CRC calculated for reader and contained in header are different.
*/
SPTPersistentCacheLoadingErrorInvalidHeaderCRC,
/**
Binary data size read as header is less then current header size which means we can't proceed further with this
file.
*/
SPTPersistentCacheLoadingErrorNotEnoughDataToGetHeader,
/**
Record is opened as stream and busy right now.
*/
SPTPersistentCacheLoadingErrorRecordIsStreamAndBusy,
/**
Something bad has happened that shouldn't.
*/
SPTPersistentCacheLoadingErrorInternalInconsistency
};