Sector cache.  
 More...
#include <ExFatPartition.h>
◆ cacheBuffer()
  
  | 
        
          | uint8_t* FsCache::cacheBuffer | ( |  | ) |  |  | inline | 
 
- Returns
- Cache sector address. 
 
 
◆ clear()
  
  | 
        
          | uint8_t* FsCache::clear | ( |  | ) |  |  | inline | 
 
- Returns
- Clear the cache and returns a pointer to the cache. 
 
 
◆ dirty()
Set current sector dirty. 
 
 
◆ get()
      
        
          | uint8_t * FsCache::get | ( | uint32_t | sector, | 
        
          |  |  | uint8_t | option | 
        
          |  | ) |  |  | 
      
 
Fill cache with sector data. 
- Parameters
- 
  
    | [in] | sector | Sector to read. |  | [in] | option | mode for cached sector. |  
 
- Returns
- Address of cached sector. 
 
 
◆ init()
Initialize the cache. 
- Parameters
- 
  
    | [in] | blockDev | Block device for this partition. |  
 
 
 
◆ invalidate()
      
        
          | void FsCache::invalidate | ( |  | ) |  | 
      
 
Invalidate current cache sector. 
 
 
◆ isDirty()
  
  | 
        
          | bool FsCache::isDirty | ( |  | ) |  |  | inline | 
 
 
◆ sector()
  
  | 
        
          | uint32_t FsCache::sector | ( |  | ) |  |  | inline | 
 
- Returns
- Logical sector number for cached sector. 
 
 
◆ sync()
Write current sector if dirty. 
- Returns
- true for success or false for failure. 
 
 
◆ CACHE_FOR_READ
  
  | 
        
          | const uint8_t FsCache::CACHE_FOR_READ = 0 |  | static | 
 
 
◆ CACHE_FOR_WRITE
◆ CACHE_OPTION_NO_READ
  
  | 
        
          | const uint8_t FsCache::CACHE_OPTION_NO_READ = 2 |  | static | 
 
Sync existing sector but do not read new sector. 
 
 
◆ CACHE_RESERVE_FOR_WRITE
Reserve cache sector for write - do not read from sector device. 
 
 
◆ CACHE_STATUS_DIRTY
  
  | 
        
          | const uint8_t FsCache::CACHE_STATUS_DIRTY = 1 |  | static | 
 
 
◆ CACHE_STATUS_MASK
The documentation for this class was generated from the following files:
- ArduinoSdFat/libraries/SdFat/src/ExFatLib/ExFatPartition.h
- ArduinoSdFat/libraries/SdFat/src/ExFatLib/ExFatPartition.cpp