ESP8266
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SPIFFSFileImpl Class Reference
Inheritance diagram for SPIFFSFileImpl:
fs::FileImpl

Public Member Functions

 SPIFFSFileImpl (SPIFFSImpl *fs, spiffs_file fd)
 
 ~SPIFFSFileImpl () override
 
size_t write (const uint8_t *buf, size_t size) override
 
size_t read (uint8_t *buf, size_t size) override
 
void flush () override
 
bool seek (uint32_t pos, SeekMode mode) override
 
size_t position () const override
 
size_t size () const override
 
void close () override
 
const char * name () const override
 
- Public Member Functions inherited from fs::FileImpl
virtual ~FileImpl ()
 

Protected Member Functions

void _getStat () const
 

Protected Attributes

SPIFFSImpl_fs
 
spiffs_file _fd
 
spiffs_stat _stat
 
bool _written
 

Constructor & Destructor Documentation

SPIFFSFileImpl::SPIFFSFileImpl ( SPIFFSImpl fs,
spiffs_file  fd 
)
SPIFFSFileImpl::~SPIFFSFileImpl ( )
override

Member Function Documentation

void SPIFFSFileImpl::_getStat ( ) const
protected
void SPIFFSFileImpl::close ( void  )
overridevirtual

Implements fs::FileImpl.

void SPIFFSFileImpl::flush ( void  )
overridevirtual

Implements fs::FileImpl.

const char* SPIFFSFileImpl::name ( void  ) const
overridevirtual

Implements fs::FileImpl.

size_t SPIFFSFileImpl::position ( ) const
overridevirtual

Implements fs::FileImpl.

size_t SPIFFSFileImpl::read ( uint8_t *  buf,
size_t  size 
)
overridevirtual

Implements fs::FileImpl.

bool SPIFFSFileImpl::seek ( uint32_t  pos,
SeekMode  mode 
)
overridevirtual

Implements fs::FileImpl.

size_t SPIFFSFileImpl::size ( ) const
overridevirtual

Implements fs::FileImpl.

size_t SPIFFSFileImpl::write ( const uint8_t *  buf,
size_t  size 
)
overridevirtual

Implements fs::FileImpl.

Member Data Documentation

spiffs_file SPIFFSFileImpl::_fd
protected
SPIFFSImpl* SPIFFSFileImpl::_fs
protected
spiffs_stat SPIFFSFileImpl::_stat
mutableprotected
bool SPIFFSFileImpl::_written
mutableprotected