Page 1 of 1

hal_files.h: Include a file offset in object data

Posted: Fri Mar 16, 2018 4:13 am
by faisal
How about including a file offset in the object data - like:

Code: Select all

#define _file_stream_data                                                   \
  _base_sequential_stream_data                                          \
  fileoffset_t offset

Re: hal_files.h: Include a file offset in object data

Posted: Sat Jun 02, 2018 2:22 pm
by Giovanni
Hi,

There is the method fileStreamGetPosition() which I slightly modified, the offset could come from an underlying File System and there is no point in duplicating the information.

Also renamed fileStreamSeek() in fileStreamSetPosition().

Giovanni