added file position, size, availale()

This commit is contained in:
hathach committed 2018-10-17 16:06:17 +07:00
1 parent aa5b285b26
commit 1fd30e3eed
4 files changed
+24 -9

No files matched your search

+7 -9
View File
@@ -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)