added file position, size, availale()
This commit is contained in:
1 parent
aa5b285b26
commit
1fd30e3eed
4 files changed
+24
-9
No files matched your search
@@ -95,16 +95,9 @@ int File::peek (void)
|
||||
|
||||
int File::available (void)
|
||||
{
|
||||
|
||||
return size() - position();
|
||||
}
|
||||
|
||||
void File::flush (void)
|
||||
{
|
||||
_fs->_f_flush(_hdl);
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool File::seek (uint32_t pos)
|
||||
{
|
||||
return _fs->_f_seek(_hdl, pos);
|
||||
@@ -112,12 +105,17 @@ bool File::seek (uint32_t pos)
|
||||
|
||||
uint32_t File::position (void)
|
||||
{
|
||||
|
||||
return _fs->_f_position(_hdl);
|
||||
}
|
||||
|
||||
uint32_t File::size (void)
|
||||
{
|
||||
return _fs->_f_size(_hdl);
|
||||
}
|
||||
|
||||
void File::flush (void)
|
||||
{
|
||||
_fs->_f_flush(_hdl);
|
||||
}
|
||||
|
||||
void File::close (void)
|
||||
|
||||
Reference in new issue
Block a user