LeviLamina
Loading...
Searching...
No Matches
Core::WriteBufferedFileStorageArea Class Reference
+ Inheritance diagram for Core::WriteBufferedFileStorageArea:

Public Types

enum class  FlushableLevelDbEnvType : int { None = 0 , InMemory = 1 , StorageArea = 2 }
 

Public Member Functions

WriteBufferedFileStorageAreaoperator= (WriteBufferedFileStorageArea const &)
 
 WriteBufferedFileStorageArea (WriteBufferedFileStorageArea const &)
 
virtual ::std::unique_ptr<::Core::FileSystemImplcreateTransaction (::Core::FileAccessType)
 
virtual bool supportsSizeQuery () const
 
virtual uint64 getTotalSize () const
 
virtual::Core::Result getUsedSize (uint64 &)
 
virtual uint64 getTransactionWriteSizeLimit () const
 
virtual bool handlesPendingWrites () const
 
virtual void informPendingWriteSize (uint64 numBytesWritePending, bool const fromResourcePack)
 
virtual uint64 estimatePendingWriteDiskSize (uint64 rawFileSize) const
 
virtual void informStorageAreaCopy (uint64 storageAreaSize)
 
virtual::Core::Result setSaveDataIcon (::Core::PathView iconPath)
 
virtual::Core::FileStorageArea::FlushableLevelDbEnvType getFlushableLevelDbEnvType () const
 
virtual void flushImmediately ()
 
virtual void enableFlushToDisk (bool)
 
virtual bool checkCorrupt (bool handleCorruption)
 
virtual void _onTeardown ()
 
virtual ::std::unique_ptr<::Core::FileSystemImplcreateTransaction (::Core::FileAccessType fileAccessType, ::Core::TransactionFlags)
 
virtual void setUsedSizeOverride (uint64)
 
virtual void clearUsedSizeOverride ()
 
virtual void notifyChangeInFileSize (int64 changeInSize, int64 changeInAllocatedSize)
 
virtual bool supportsExtendSize () const
 
virtual bool canExtendSize () const
 
virtual void resetCanAttemptExtendSize ()
 
virtual::Core::Result getExtendSizeThreshold (uint64 &outExtendSizeThreshold) const
 
virtual void attemptExtendSize (int64 const &currentFreeSpace, ::std::function< void()> onCompleteCallback)
 
virtual void preemptiveExtendSize (uint64 const expectedContentSize, ::std::function< void()> successCallback, ::std::function< void()> failureCallback)
 
virtual uint64 getAvailableUserStorageSize ()
 
virtual void unloadFlatFileManifests (bool shouldClearManifests)
 
virtual void tick ()
 
virtual bool shouldAllowCommit () const
 
virtual void trackBytesWritten (::Core::PathView targetPath, uint64 amount, ::Core::WriteOperation writeOperation)
 
virtual void trackWriteOperation (::Core::PathView targetPath, ::Core::WriteOperation writeOperation)
 
virtual::Core::FileStorageArea::StorageAreaSpaceInfo getStorageAreaSpaceInfo ()
 
virtual::Core::Result _commit ()
 
virtual::Core::Result _onTransactionsEmpty (bool fromChild)
 
MCAPI void _addReadOperation (bool succeeded, uint64 numBytesRead)
 
MCAPI void _addWriteOperation (bool succeeded, uint64 numBytesWritten)
 
MCAPI void _beginTransaction (::Core::FileSystemImpl *pTransaction, bool fromChild)
 
MCAPI::Core::Result _endTransaction (::Core::FileSystemImpl *pTransaction, bool fromChild)
 
MCAPI void _notifyEndWrite ()
 
MCAPI bool canWrite () const
 
MCAPI void checkUserStorage ()
 
MCAPI bool isOutOfDiskSpaceError () const
 
MCAPI void notifyCriticalDiskError (::Core::LevelStorageState const &errorCode)
 
MCAPI void * $ctor (::Core::FileAccessType type, ::Core::PathView rootPath, bool usesFlatFiles, bool parent, ::std::shared_ptr<::Core::FileStorageArea > isAccessedDirectly)
 
MCAPI void $dtor ()
 
MCFOLD ::std::unique_ptr<::Core::FileSystemImpl$createTransaction (::Core::FileAccessType fileAccessType, ::Core::TransactionFlags)
 
MCFOLD void $setUsedSizeOverride (uint64)
 
MCFOLD void $clearUsedSizeOverride ()
 
MCAPI void $notifyChangeInFileSize (int64 changeInSize, int64 changeInAllocatedSize)
 
MCFOLD bool $handlesPendingWrites () const
 
MCFOLD void $informPendingWriteSize (uint64 numBytesWritePending, bool const fromResourcePack)
 
MCFOLD uint64 $estimatePendingWriteDiskSize (uint64 rawFileSize) const
 
MCFOLD void $informStorageAreaCopy (uint64 storageAreaSize)
 
MCFOLD bool $supportsExtendSize () const
 
MCFOLD bool $canExtendSize () const
 
MCAPI void $resetCanAttemptExtendSize ()
 
MCAPI::Core::Result $getExtendSizeThreshold (uint64 &outExtendSizeThreshold) const
 
MCAPI void $attemptExtendSize (int64 const &currentFreeSpace, ::std::function< void()> onCompleteCallback)
 
MCAPI void $preemptiveExtendSize (uint64 const expectedContentSize, ::std::function< void()> successCallback, ::std::function< void()> failureCallback)
 
MCAPI uint64 $getAvailableUserStorageSize ()
 
MCAPI void $unloadFlatFileManifests (bool shouldClearManifests)
 
MCFOLD void $tick ()
 
MCFOLD void $flushImmediately ()
 
MCFOLD void $enableFlushToDisk (bool)
 
MCFOLD bool $checkCorrupt (bool handleCorruption)
 
MCFOLD::Core::FileStorageArea::FlushableLevelDbEnvType $getFlushableLevelDbEnvType () const
 
MCFOLD uint64 $getTransactionWriteSizeLimit () const
 
MCFOLD::Core::Result $setSaveDataIcon (::Core::PathView iconPath)
 
MCAPI bool $shouldAllowCommit () const
 
MCAPI void $trackBytesWritten (::Core::PathView targetPath, uint64 amount, ::Core::WriteOperation writeOperation)
 
MCAPI void $trackWriteOperation (::Core::PathView targetPath, ::Core::WriteOperation writeOperation)
 
MCAPI::Core::FileStorageArea::StorageAreaSpaceInfo $getStorageAreaSpaceInfo ()
 
MCFOLD::Core::Result $_commit ()
 
MCFOLD::Core::Result $_onTransactionsEmpty (bool fromChild)
 
MCFOLD void $_onTeardown ()
 

Static Public Member Functions

static MCAPI ::Core::Result _getStorageAreaForPathImpl (::std::shared_ptr<::Core::FileStorageArea > &fileStorageArea, ::Core::PathView path)
 
static MCAPI ::Core::Result getStorageAreaForPath (::std::shared_ptr<::Core::FileStorageArea > &fileStorageArea, ::Core::PathView path)
 
static MCAPI ::std::vector<::Core::FileStats * > & sStorageAreaFileStats ()
 
static MCAPI ::std::recursive_mutex & sStorageAreaLock ()
 
static MCAPI ::Core::StorageAreasTreesStorageAreas ()
 
static MCAPI void ** $vftable ()
 

Public Attributes

::ll::UntypedStorage< 8, 16 > mUnkb8f56f
 
::ll::UntypedStorage< 8, 16 > mUnk847197
 
::ll::UntypedStorage< 8, 64 > mUnk889f10
 
::ll::UntypedStorage< 8, 80 > mUnkba13b1
 
::ll::UntypedStorage< 8, 24 > mUnk7cfba8
 
::ll::UntypedStorage< 1, 1 > mUnk13aec3
 
::ll::UntypedStorage< 1, 1 > mUnk61c0ed
 
::ll::UntypedStorage< 1, 1 > mUnkafc03c
 
::ll::UntypedStorage< 8, 80 > mUnk63cc78
 
::ll::UntypedStorage< 8, 24 > mUnka56475
 
::ll::UntypedStorage< 1, 1 > mUnk7f3baf
 
::ll::UntypedStorage< 1, 1 > mUnk6060c1
 
::ll::UntypedStorage< 8, 64 > mUnk3e8909
 
::ll::UntypedStorage< 8, 64 > mUnk6a2388
 
::ll::UntypedStorage< 8, 16 > mUnk683578
 
::ll::UntypedStorage< 4, 4 > mUnkd6345d
 
::ll::UntypedStorage< 8, 32 > mUnke4ae6a
 
::ll::UntypedStorage< 8, 24 > mUnk3c594a
 
::ll::UntypedStorage< 8, 32 > mUnkedd4a1
 
::ll::UntypedStorage< 8, 144 > mUnk55245b
 
::ll::UntypedStorage< 1, 1 > mUnk6e99fd
 
::ll::UntypedStorage< 8, 88 > mUnk31611b
 
::ll::UntypedStorage< 1, 1 > mUnkf29ed2
 
::ll::UntypedStorage< 8, 16 > mUnkecef76
 
::ll::UntypedStorage< 1, 1 > mUnk949164
 

Member Function Documentation

◆ createTransaction()

virtual ::std::unique_ptr<::Core::FileSystemImpl > Core::WriteBufferedFileStorageArea::createTransaction ( ::Core::FileAccessType )
virtual

Implements Core::FileStorageArea.

◆ supportsSizeQuery()

virtual bool Core::WriteBufferedFileStorageArea::supportsSizeQuery ( ) const
virtual

Implements Core::FileStorageArea.

◆ getTotalSize()

virtual uint64 Core::WriteBufferedFileStorageArea::getTotalSize ( ) const
virtual

Implements Core::FileStorageArea.

◆ getUsedSize()

virtual::Core::Result Core::WriteBufferedFileStorageArea::getUsedSize ( uint64 & )
virtual

Implements Core::FileStorageArea.

◆ getTransactionWriteSizeLimit()

virtual uint64 Core::WriteBufferedFileStorageArea::getTransactionWriteSizeLimit ( ) const
virtual

Reimplemented from Core::FileStorageArea.

◆ handlesPendingWrites()

virtual bool Core::WriteBufferedFileStorageArea::handlesPendingWrites ( ) const
virtual

Reimplemented from Core::FileStorageArea.

◆ informPendingWriteSize()

virtual void Core::WriteBufferedFileStorageArea::informPendingWriteSize ( uint64 numBytesWritePending,
bool const fromResourcePack )
virtual

Reimplemented from Core::FileStorageArea.

◆ estimatePendingWriteDiskSize()

virtual uint64 Core::WriteBufferedFileStorageArea::estimatePendingWriteDiskSize ( uint64 rawFileSize) const
virtual

Reimplemented from Core::FileStorageArea.

◆ informStorageAreaCopy()

virtual void Core::WriteBufferedFileStorageArea::informStorageAreaCopy ( uint64 storageAreaSize)
virtual

Reimplemented from Core::FileStorageArea.

◆ flushImmediately()

virtual void Core::WriteBufferedFileStorageArea::flushImmediately ( )
virtual

Reimplemented from Core::FileStorageArea.

◆ enableFlushToDisk()

virtual void Core::WriteBufferedFileStorageArea::enableFlushToDisk ( bool )
virtual

Reimplemented from Core::FileStorageArea.

◆ checkCorrupt()

virtual bool Core::WriteBufferedFileStorageArea::checkCorrupt ( bool handleCorruption)
virtual

Reimplemented from Core::FileStorageArea.

◆ _onTeardown()

virtual void Core::WriteBufferedFileStorageArea::_onTeardown ( )
virtual

Reimplemented from Core::FileStorageArea.


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