[DEV] add fileTell
This commit is contained in:
parent
a2e5f4e0ce
commit
1bd40ce2d0
@ -1693,6 +1693,19 @@ bool etk::FSNode::fileSeek(long int _offset, enum etk::seekNode _origin)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
int64_t etk::FSNode::fileTell(void) {
|
||||
#ifdef __TARGET_OS__Android
|
||||
if( m_type == etk::FSN_TYPE_DATA
|
||||
|| m_type == etk::FSN_TYPE_THEME_DATA) {
|
||||
if (NULL == m_zipContent) {
|
||||
return false;
|
||||
}
|
||||
return m_zipReadingOffset;
|
||||
}
|
||||
#endif
|
||||
return ftell(m_PointerFile);
|
||||
|
||||
}
|
||||
|
||||
void etk::FSNode::fileFlush(void) {
|
||||
#ifdef __TARGET_OS__Android
|
||||
|
@ -453,7 +453,11 @@ namespace etk {
|
||||
* @return Number of element written (in block number)
|
||||
*/
|
||||
int64_t fileWrite(void* _data, int64_t _blockSize, int64_t _nbBlock);
|
||||
|
||||
/**
|
||||
* @brief Get the position in the file.
|
||||
* @return the requested position.
|
||||
*/
|
||||
int64_t fileTell(void);
|
||||
/**
|
||||
* @brief Move in the file Position
|
||||
* @param[in] _offset Offset to apply at the file
|
||||
|
Loading…
x
Reference in New Issue
Block a user